You are here

public function ActionListBuilder::render in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::render()

Builds the entity listing as renderable array for table.html.twig.

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

Overrides EntityListBuilder::render

File

core/modules/action/src/ActionListBuilder.php, line 115
Contains \Drupal\action\ActionListBuilder.

Class

ActionListBuilder
Defines a class to build a listing of action entities.

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::formBuilder()
    ->getForm('Drupal\\action\\Form\\ActionAdminManageForm');
  return $build;
}