You are here

protected function ViewsBulkOperationsActionManager::alterDefinitions in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.3 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::alterDefinitions()
  2. 8.2 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::alterDefinitions()
  3. 4.0.x 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 176

Class

ViewsBulkOperationsActionManager
Defines Views Bulk Operations action manager.

Namespace

Drupal\views_bulk_operations\Service

Code

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);
}