public function PictureMappingListController::getOperations

Overrides Drupal\config\ConfigEntityListController::getOperations();

Overrides ConfigEntityListController::getOperations

File

drupal/core/modules/picture/lib/Drupal/picture/PictureMappingListController.php, line 37
Contains Drupal\picture\PictureListController.

Class

PictureMappingListController
Provides a listing of Pictures.

Namespace

Drupal\picture

Code

public function getOperations(EntityInterface $entity) {
  $operations = parent::getOperations($entity);
  $uri = $entity
    ->uri();
  $operations['duplicate'] = array(
    'title' => t('Duplicate'),
    'href' => $uri['path'] . '/duplicate',
    'options' => $uri['options'],
    'weight' => 15,
  );
  return $operations;
}