function ActionListBuilder::render
Same name in other branches
- 9 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::render()
- 8.9.x core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::render()
- 11.x core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::render()
Overrides EntityListBuilder::render
File
-
core/
modules/ action/ src/ ActionListBuilder.php, line 124
Class
- ActionListBuilder
- Defines a class to build a listing of action entities.
Namespace
Drupal\actionCode
public function render() {
$build['action_admin_manage_form'] = $this->formBuilder
->getForm(ActionAdminManageForm::class);
$build['action_header']['#markup'] = '<h3>' . $this->t('Available actions:') . '</h3>';
$build['action_table'] = parent::render();
if (!$this->hasConfigurableActions) {
unset($build['action_table']['table']['#header']['operations']);
}
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.