function ActionListBuilder::getDefaultOperations
Same name in other branches
- 9 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::getDefaultOperations()
- 10 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::getDefaultOperations()
- 11.x core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::getDefaultOperations()
Overrides ConfigEntityListBuilder::getDefaultOperations
File
-
core/
modules/ action/ src/ ActionListBuilder.php, line 99
Class
- ActionListBuilder
- Defines a class to build a listing of action entities.
Namespace
Drupal\actionCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = $entity->isConfigurable() ? parent::getDefaultOperations($entity) : [];
if (isset($operations['edit'])) {
$operations['edit']['title'] = t('Configure');
}
return $operations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.