/**
* @param array $row
* @return Grid
*/
public function getGrid(array $row)
{
if (NULL !== $this->grid) {
return $this->grid;
}
$templatePathAndFilename = $this->getTemplatePathAndFilename($row);
$section = $this->getConfigurationSectionName($row);
$gridName = 'grid';
$paths = $this->getTemplatePaths($row);
$extensionKey = $this->getExtensionKey($row);
$extensionName = ExtensionNamingUtility::getExtensionName($extensionKey);
$fieldName = $this->getFieldName($row);
$variables = $this->configurationService->convertFlexFormContentToArray($row[$fieldName]);
$variables['record'] = $row;
$grid = $this->configurationService->getGridFromTemplateFile($templatePathAndFilename, $section, $gridName, $paths, $extensionName, $variables);
return $grid;
}