function ResponsiveImageStyleListBuilder::getDefaultOperations
Same name in other branches
- 9 core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php \Drupal\responsive_image\ResponsiveImageStyleListBuilder::getDefaultOperations()
- 10 core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php \Drupal\responsive_image\ResponsiveImageStyleListBuilder::getDefaultOperations()
- 11.x core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php \Drupal\responsive_image\ResponsiveImageStyleListBuilder::getDefaultOperations()
Overrides ConfigEntityListBuilder::getDefaultOperations
File
-
core/
modules/ responsive_image/ src/ ResponsiveImageStyleListBuilder.php, line 32
Class
- ResponsiveImageStyleListBuilder
- Provides a listing of responsive image styles.
Namespace
Drupal\responsive_imageCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$operations['duplicate'] = [
'title' => t('Duplicate'),
'weight' => 15,
'url' => $entity->toUrl('duplicate-form'),
];
return $operations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.