protected function EasyEmailListBuilder::getDefaultOperations in Easy Email 8
Same name and namespace in other branches
- 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_emailCode
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;
}