Renders the row.

@param EM\RowInterface|View\RowView $row
@param array                        $data

@return string
@throws Exception\InvalidArgumentException
423748
public function renderRow($row, array $data = [])
    {
        if (is_string($row)) {
            if (null === $element = $this->editor->getRepository()->findRowByName($row)) {
                $this->persist($element = $this->editor->getRowManager()->create($row, $data));
            }
            $row = $element;
        }

        if ($row instanceof EM\RowInterface) {
            $this->tagManager->addTags($row->getEntityTag());

            $row = $this->editor->getViewBuilder()->buildRow($row);
        }

        if (!$row instanceof View\RowView) {
            throw new Exception\InvalidArgumentException(
                'Expected string or instance of ' .
                EM\RowInterface::class . ' or ' .
                View\RowView::class
            );
        }

        /** @noinspection PhpInternalEntityUsedInspection */
        return $this->getTemplate()->renderBlock('cms_row', [
            'row' => $row,
        ]);
    }
1172417
public static function render($view, $data = array()){

        if( is_array($view) ){

            foreach( $view as $item ){
                self::render($item, $data);
            }

            return;
        }

        echo self::get($view, $data);
    }
1084603
public function getDataCellContent($row)
	{
		$data=$this->grid->dataProvider->data[$row];
		$tr=array();
		ob_start();
		foreach($this->buttons as $id=>$button)
		{
			$this->renderButton($id,$button,$row,$data);
			$tr['{'.$id.'}']=ob_get_contents();
			ob_clean();
		}
		ob_end_clean();
		return strtr($this->template,$tr);
	}
1108299
protected function render($layout, $data) {

        // On récupère le chemin vers le layout.
        $path = Path::clean(JPATH_THEME . '/html/utility/' . $layout . '.php');

        // On contrôle que le chemin existe.
        if (!file_exists($path)) {
            throw new \InvalidArgumentException('HtmlUtility Layout Path Not Found : ' . $layout, 404);
        }

        // On crée un buffer de sortie.
        ob_start();

        // On charge le layout.
        include $path;

        // On récupère le contenu.
        $output = ob_get_clean();

        return $output;

    }
1254315
private function getDataCellContent($column, $data, $row)
	{
		if ($column->value !== null) {
			$value = $column->evaluateExpression($column->value, array('data' => $data, 'row' => $row));
		} else if ($column->name !== null) {
			$value = CHtml::value($data, $column->name);
		}

		return !isset($value)
			? $column->grid->nullDisplay
			: $column->grid->getFormatter()->format(
				$value,
				$column->type
			);
	}
406505
public function render($view, array $data = null)
	{
		$engine = new Engine($this->templatePath);
		$template = new Template($engine);
		return $template->render($view, $data);
	}
984380
public function _prepareArrayRow(\Magento\Framework\DataObject $row)
    {
        $optionExtraAttr = [];
        $optionExtraAttr['option_' . $this->getStatusRenderer()
            ->calcOptionHash($row->getData('status'))]
                         = 'selected="selected"';
        $optionExtraAttr['option_' . $this->getAutomationRenderer()
            ->calcOptionHash($row->getData('automation'))]
                         = 'selected="selected"';
        $row->setData(
            'option_extra_attrs',
            $optionExtraAttr
        );
    }
190230
private function getRow($row)
    {
        $content = $this->getContent();

        if (! $content->has($row)) {
            throw new InvalidShoppingCartRowException();
        }

        return $content->get($row);
    }
528998
public function render($row = null)
    {
        if (is_null($this->layout)) {
            throw new Exception('Unable to render fieldset layout. Layout is empty.');
        }
        $attributes = array_merge([
            'controls'   => $this->controls,
            'name'       => $this->name,
            'attributes' => $this->attributes,
            'row'        => $row,
            'legend'     => $this->legend], $this->params);

        return view($this->layout)->with($attributes);
    }
580831
protected function renderDataCellContent($row, $data)
	{
		$checked = $this->getCheckedState($row, $data);
		$label = $this->makeButtonLabel($checked);
		$icon = $this->makeButtonIcon($checked);
		$url = $this->makeButtonUrl($row, $data);

		if ($this->displayText)
			$this->renderButton($label, $icon, $url);
		else
			$this->renderLink($label, $icon, $url);
	}
846172
public function render(string $view, array $data = []): string
    {
        return $this->native()->render(
            $this->path($view),
            $data
        );
    }
991882
public function renderTableRow($row)
    {
        $htmlOptions = array();
        if ($this->rowHtmlOptionsExpression !== null) {
            $data = $this->dataProvider->data[$row];
            $options = $this->evaluateExpression(
                $this->rowHtmlOptionsExpression,
                array('row' => $row, 'data' => $data)
            );
            if (is_array($options)) {
                $htmlOptions = $options;
            }
        }

        if ($this->rowCssClassExpression !== null) {
            $data = $this->dataProvider->data[$row];
            $class = $this->evaluateExpression($this->rowCssClassExpression, array('row' => $row, 'data' => $data));
        } elseif (is_array($this->rowCssClass) && ($n = count($this->rowCssClass)) > 0) {
            $class = $this->rowCssClass[$row % $n];
        }

        if (!empty($class)) {
            if (isset($htmlOptions['class'])) {
                $htmlOptions['class'] .= ' ' . $class;
            } else {
                $htmlOptions['class'] = $class;
            }
        }

        echo TbHtml::openTag('tr', $htmlOptions);
        foreach ($this->columns as $column) {
            echo $this->displayExtendedSummary && !empty($this->extendedSummary['columns']) ? $this->parseColumnValue(
                $column,
                $row
            ) : $column->renderDataCell($row);
        }
        echo TbHtml::closeTag('tr');
    }
735571
def render_row(row_index, widths)
      @pad + @page_data.each_with_index.map do |column, index|
        column[row_index].to_s.ljust(widths[index])
      end.join(" ")
    end
441633
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        /* @var $controller AssignmentController */
        $controller = $this->grid->getController();

        $assignments = $am->getAuthAssignments($data->{$this->idColumn});
        $permissions = $am->getItemsPermissions(array_keys($assignments));
        foreach ($permissions as $itemPermission) {
            echo $itemPermission['item']->description;
            echo ' <small>' . $controller->getItemTypeText($itemPermission['item']->type, false) . '</small><br />';
        }
    }
734134
public function render($view, $data = [], $mergeData = [])
    {
        $this->results = [];

        $viewPath = $this->getViewPath($view);

        if ($viewPath === null) {
            throw new InvalidArgumentException("View [{$view}] not found.");
        }

        $data = array_merge($mergeData, $data);

        extract($data);

        include($viewPath);

        return $this->results;
    }
1233313
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        $labelType = $this->active || $am->hasParent($this->itemName, $data['name']) || $am->hasChild(
            $this->itemName,
            $data['name']
        ) ? 'info' : '';

        /* @var $controller AuthItemController */
        $controller = $this->grid->getController();

        echo TbHtml::labelTb(
            $controller->getItemTypeText($data['item']->type),
            array(
                'color' => $labelType,
            )
        );
    }
355343
public function render(\Magento\Framework\DataObject $row)
    {
        return '<div ' . (($this->_getValue($row) == '1'
            || $this->_getValue($row) == true)
            ? 'class="dotmailer-success"  '
            :
            'class="dotmailer-error"  ') . '>  </div>';
    }