function ImageStyleListBuilder::render
Same name in other branches
- 9 core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::render()
- 10 core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::render()
- 11.x core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::render()
Overrides EntityListBuilder::render
File
-
core/
modules/ image/ src/ ImageStyleListBuilder.php, line 58
Class
- ImageStyleListBuilder
- Defines a class to build a listing of image style entities.
Namespace
Drupal\imageCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this->t('There are currently no styles. <a href=":url">Add a new one</a>.', [
':url' => Url::fromRoute('image.style_add')->toString(),
]);
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.