public function TranslatorListBuilder::getDefaultOperations

File

src/Entity/ListBuilder/TranslatorListBuilder.php, line 90

Class

TranslatorListBuilder
Provides a listing of translators.

Namespace

Drupal\tmgmt\Entity\ListBuilder

Code

public function getDefaultOperations(EntityInterface $entity) {
  $operations = parent::getDefaultOperations($entity);
  $operations['clone'] = array(
    'url' => $entity
      ->toUrl('clone-form'),
    'title' => t('Clone'),
    'weight' => 50,
  );
  return $operations;
}