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