public function KeyConfigOverrideListBuilder::render in Key 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/
Controller/ KeyConfigOverrideListBuilder.php, line 108
Class
- KeyConfigOverrideListBuilder
- Provides a listing of key configuration overrides.
Namespace
Drupal\key\ControllerCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No key configuration overrides are available. <a href=":link">Add an override</a>.', [
':link' => Url::fromRoute('entity.key_config_override.add_form')
->toString(),
]);
return $build;
}