public function ActionListController::render

Implements \Drupal\Core\Entity\EntityListControllerInterface::render().

Builds the entity list as renderable array for theme_table().

@todo Add a link to add a new item to the #empty text.

Overrides EntityListController::render

File

drupal/core/modules/action/lib/Drupal/action/ActionListController.php, line 134
Contains \Drupal\action\ActionListController.

Class

ActionListController
Provides a listing of Actions.

Namespace

Drupal\action

Code

public function render() {
  $build['action_header']['#markup'] = '<h3>' . t('Available actions:') . '</h3>';
  $build['action_table'] = parent::render();
  if (!$this->hasConfigurableActions) {
    unset($build['action_table']['#header']['operations']);
  }
  $build['action_admin_manage_form'] = drupal_get_form(new ActionAdminManageForm($this->actionManager));
  return $build;
}