You are here

public function ImceProfileListBuilder::getDefaultOperations in IMCE 8.2

Same name and namespace in other branches
  1. 8 src/ImceProfileListBuilder.php \Drupal\imce\ImceProfileListBuilder::getDefaultOperations()

Gets this list's default operations.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array The array structure is identical to the return value of self::getOperations().

Overrides ConfigEntityListBuilder::getDefaultOperations

File

src/ImceProfileListBuilder.php, line 36

Class

ImceProfileListBuilder
Defines a class to build a list of Imce Profile entities.

Namespace

Drupal\imce

Code

public function getDefaultOperations(EntityInterface $imce_profile) {
  $operations = parent::getDefaultOperations($imce_profile);
  $operations['duplicate'] = [
    'title' => $this
      ->t('Duplicate'),
    'weight' => 15,
    'url' => $imce_profile
      ->toUrl('duplicate-form'),
  ];
  return $operations;
}