public function WorkflowListBuilder::render in Workflow 8
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
- src/
WorkflowListBuilder.php, line 75
Class
- WorkflowListBuilder
- Defines a class to build a listing of Workflow entities.
Namespace
Drupal\workflowCode
public function render() {
$build = parent::render();
/*
* Allow modules to insert their own top_action links to the list, like cleanup module.
*
* This is not done anymore via the workflow hook.
* Instead, for an example:
* @see workflow.links.action.yml
* @see workflow.api.php under 'hook_workflow_operations'.
*/
// $top_actions = \Drupal::moduleHandler()
// ->invokeAll('workflow_operations', ['top_actions', NULL]);
// $top_actions_args = [
// 'links' => $top_actions,
// 'attributes' => ['class' => ['inline', 'action-links']],
// ];
return $build;
}