public function GauthListBuilder::render in Google Auth 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/ GauthListBuilder.php, line 22
Class
- GauthListBuilder
- Provides a list controller for gauth entity.
Namespace
Drupal\gauth\Entity\ControllerCode
public function render() {
$build['description'] = [
'#markup' => $this
->t('Gauth implements a Gauth account model. These gauth accounts are fieldable entities. You can manage the fields on the <a href="@adminlink">Gauth admin page</a>.', [
'@adminlink' => \Drupal::urlGenerator()
->generateFromRoute('gauth.gauth_settings'),
]),
];
$build += parent::render();
return $build;
}