protected function ManageContext::renderRows in Chaos Tool Suite (ctools) 8.3
Parameters
$cached_values:
Return value
array
1 call to ManageContext::renderRows()
- ManageContext::buildForm in src/
Form/ ManageContext.php - Form constructor.
File
- src/
Form/ ManageContext.php, line 224
Class
Namespace
Drupal\ctools\FormCode
protected function renderRows($cached_values) {
$contexts = [];
foreach ($this
->getContexts($cached_values) as $row => $context) {
list($route_name, $route_parameters) = $this
->getContextOperationsRouteInfo($cached_values, $this->machine_name, $row);
$build = [
'#type' => 'operations',
'#links' => $this
->getOperations($cached_values, $row, $route_name, $route_parameters),
];
$contexts[$row] = [
$row,
$context
->getContextDefinition()
->getLabel(),
$context
->getContextDefinition()
->getDataType(),
'operations' => [
'data' => $build,
],
];
}
return $contexts;
}