public function FlipbookListBuilder::render in 3D Flipbook 8
We override ::render() so that we can add our own content above the table. parent::render() is where EntityListBuilder creates the table using our buildHeader() and buildRow() implementations.
Overrides EntityListBuilder::render
File
- src/
Entity/ Controller/ FlipbookListBuilder.php, line 25
Class
- FlipbookListBuilder
- Provides a list controller for content_entity_example_contact entity.
Namespace
Drupal\flipbook\Entity\ControllerCode
public function render() {
$build['description'] = [
'#markup' => $this
->t('Flipbook Entity Example implements a Flipbooks model. These flipbooks are fieldable entities. You can manage the fields on the <a href="@adminlink">Flipbook admin page</a>.', [
'@adminlink' => \Drupal::urlGenerator()
->generateFromRoute('flipbook.settings'),
]),
];
$build += parent::render();
return $build;
}