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);
}