public function TagList::render in Doubleclick for Publishers (DFP) 8
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/
View/ TagList.php, line 49 - Contains \Drupal\dfp\View\TagList.
Class
- TagList
- Defines a class to build a listing of DFP tag entities.
Namespace
Drupal\dfp\ViewCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No DFP tags available. <a href=":link">Add DFP tag</a>.', [
':link' => Url::fromRoute('entity.dfp_tag.add_form')
->toString(),
]);
return $build;
}