public function GoogleApiClientListBuilder::render in Google API PHP Client 8.2
Same name and namespace in other branches
- 8.4 src/Entity/Controller/GoogleApiClientListBuilder.php \Drupal\google_api_client\Entity\Controller\GoogleApiClientListBuilder::render()
- 8.3 src/Entity/Controller/GoogleApiClientListBuilder.php \Drupal\google_api_client\Entity\Controller\GoogleApiClientListBuilder::render()
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/ GoogleApiClientListBuilder.php, line 22
Class
- GoogleApiClientListBuilder
- Provides a list controller for google_api_client entity.
Namespace
Drupal\google_api_client\Entity\ControllerCode
public function render() {
$build['description'] = [
'#markup' => $this
->t('GoogleApiClient implements a GoogleApiClient account model. These google_api_client accounts are fieldable entities. You can manage the fields on the <a href="@adminlink">GoogleApiClient admin page</a>.', [
'@adminlink' => \Drupal::urlGenerator()
->generateFromRoute('google_api_client.google_api_client_settings'),
]),
];
$build += parent::render();
return $build;
}