FluidTYPO3\Flux\View\PreviewView::drawGrid PHP Метод

drawGrid() защищенный Метод

protected drawGrid ( array $row, FluidTYPO3\Flux\Form\Container\Grid $grid, Form $form ) : string
$row array
$grid FluidTYPO3\Flux\Form\Container\Grid
$form FluidTYPO3\Flux\Form
Результат string
    protected function drawGrid(array $row, Grid $grid, Form $form)
    {
        $options = $this->getPreviewOptions($form);
        $canToggle = $this->getOptionToggle($options);
        $isCollapsed = $this->isRowCollapsed($row);
        $collapsedClass = TRUE === $canToggle && TRUE === $isCollapsed ? ' flux-grid-hidden' : '';
        $gridRows = $grid->getRows();
        $content = '';
        foreach ($gridRows as $gridRow) {
            $content .= '<tr>';
            $columns = $gridRow->getColumns();
            foreach ($columns as $column) {
                $content .= $this->drawGridColumn($row, $column);
            }
            $content .= '</tr>';
        }
        return sprintf($this->templates['grid'], $row['uid'], $collapsedClass, $content);
    }