function ImageStyleListBuilder::getDefaultOperations
Same name in other branches
- 9 core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::getDefaultOperations()
- 8.9.x core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::getDefaultOperations()
- 11.x core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::getDefaultOperations()
Overrides ConfigEntityListBuilder::getDefaultOperations
File
-
core/
modules/ image/ src/ ImageStyleListBuilder.php, line 35
Class
- ImageStyleListBuilder
- Defines a class to build a listing of image style entities.
Namespace
Drupal\imageCode
public function getDefaultOperations(EntityInterface $entity) {
$flush = [
'title' => t('Flush'),
'weight' => 200,
'url' => $entity->toUrl('flush-form'),
];
return parent::getDefaultOperations($entity) + [
'flush' => $flush,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.