public function BUEditorEditorListBuilder::getDefaultOperations in BUEditor 8
Same name and namespace in other branches
- 8.2 src/BUEditorEditorListBuilder.php \Drupal\bueditor\BUEditorEditorListBuilder::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/
BUEditorEditorListBuilder.php, line 38
Class
- BUEditorEditorListBuilder
- Defines a class to build a list of BUEditor Editor entities.
Namespace
Drupal\bueditorCode
public function getDefaultOperations(EntityInterface $bueditor_editor) {
$operations = parent::getDefaultOperations($bueditor_editor);
$operations['duplicate'] = [
'title' => $this
->t('Duplicate'),
'weight' => 15,
'url' => $bueditor_editor
->toUrl('duplicate-form'),
];
return $operations;
}