public function SliderListBuilder::render in Image sliders 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/ SliderListBuilder.php, line 58
Class
- SliderListBuilder
- Provides a list controller for image_slider entity.
Namespace
Drupal\image_slider\Entity\ControllerCode
public function render() {
$build['description'] = [
'#markup' => $this
->t('Slider Entity implements a Sliders model.'),
];
$build['table'] = parent::render();
\Drupal::service('cache.render')
->invalidateAll();
return $build;
}