protected function ViewsBulkOperationsActionManager::alterDefinitions in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::alterDefinitions()
- 8 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::alterDefinitions()
- 8.2 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::alterDefinitions()
Invokes the hook to alter the definitions if the alter hook is set.
Parameters
$definitions: The discovered plugin definitions.
Overrides DefaultPluginManager::alterDefinitions
1 call to ViewsBulkOperationsActionManager::alterDefinitions()
- ViewsBulkOperationsActionManager::findDefinitions in src/
Service/ ViewsBulkOperationsActionManager.php - Finds plugin definitions.
File
- src/
Service/ ViewsBulkOperationsActionManager.php, line 209
Class
- ViewsBulkOperationsActionManager
- Defines Views Bulk Operations action manager.
Namespace
Drupal\views_bulk_operations\ServiceCode
protected function alterDefinitions(&$definitions) {
// Let other modules change definitions.
// Main purpose: Action permissions bridge.
$event = new Event();
$event->alterParameters = $this->alterParameters;
$event->definitions =& $definitions;
$this->eventDispatcher
->dispatch(static::ALTER_ACTIONS_EVENT, $event);
// Include the expected behaviour (hook system) to avoid security issues.
parent::alterDefinitions($definitions);
}