public function ContentMenuListController::render in Content Menu 8
Overrides \Drupal\Core\Entity\EntityListController::render().
File
- lib/
Drupal/ content_menu/ ContentMenuListController.php, line 48
Class
- ContentMenuListController
- Provides a simplified listing of Menus
Namespace
Drupal\content_menuCode
public function render() {
$build = array(
'#theme' => 'table',
'#header' => $this
->buildHeader(),
'#rows' => array(),
'#empty' => t('There is no @label yet.', array(
'@label' => $this->entityInfo['label'],
)),
);
foreach ($this
->load() as $entity) {
if (content_menu_is_menu_considered($entity
->id()) || user_access('administer system menus')) {
$build['#rows'][$entity
->id()] = $this
->buildRow($entity);
}
}
return $build;
}