You are here

protected function EasyEmailListBuilder::getDefaultOperations in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/EasyEmailListBuilder.php \Drupal\easy_email\EasyEmailListBuilder::getDefaultOperations()

@inheritDoc

Overrides EntityListBuilder::getDefaultOperations

File

src/EasyEmailListBuilder.php, line 79

Class

EasyEmailListBuilder
Defines a class to build a listing of Email entities.

Namespace

Drupal\easy_email

Code

protected function getDefaultOperations(EntityInterface $entity) {
  $operations = parent::getDefaultOperations($entity);
  $operations['view'] = [
    'title' => $this
      ->t('View'),
    'weight' => -10,
    'url' => $this
      ->ensureDestination($entity
      ->toUrl('canonical')),
  ];
  return $operations;
}