function NodeTypeListBuilder::render
Same name in other branches
- 9 core/modules/node/src/NodeTypeListBuilder.php \Drupal\node\NodeTypeListBuilder::render()
- 10 core/modules/node/src/NodeTypeListBuilder.php \Drupal\node\NodeTypeListBuilder::render()
- 11.x core/modules/node/src/NodeTypeListBuilder.php \Drupal\node\NodeTypeListBuilder::render()
Overrides EntityListBuilder::render
File
-
core/
modules/ node/ src/ NodeTypeListBuilder.php, line 56
Class
- NodeTypeListBuilder
- Defines a class to build a listing of node type entities.
Namespace
Drupal\nodeCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this->t('No content types available. <a href=":link">Add content type</a>.', [
':link' => Url::fromRoute('node.type_add')->toString(),
]);
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.