function ResponsiveImageStyleListBuilder::getDefaultOperations

Same name in other branches
  1. 9 core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php \Drupal\responsive_image\ResponsiveImageStyleListBuilder::getDefaultOperations()
  2. 10 core/modules/responsive_image/src/ResponsiveImageStyleListBuilder.php \Drupal\responsive_image\ResponsiveImageStyleListBuilder::getDefaultOperations()
  3. 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_image

Code

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.