public function EncryptionProfileListBuilder::render in Encrypt 8.3
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/ EncryptionProfileListBuilder.php, line 136
Class
- EncryptionProfileListBuilder
- Provides a listing of encryption profile entities.
Namespace
Drupal\encrypt\ControllerCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No encryption profiles are available. <a href=":link">Add a profile</a>.', [
':link' => Url::fromRoute('entity.encryption_profile.add_form')
->toString(),
]);
return $build;
}