You are here

public function ViewsBulkOperationsActionManager::getDefinitions in Views Bulk Operations (VBO) 8.2

Same name and namespace in other branches
  1. 8.3 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::getDefinitions()
  2. 8 src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::getDefinitions()
  3. 4.0.x src/Service/ViewsBulkOperationsActionManager.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::getDefinitions()

Parameters

array $parameters: Parameters of the method. Passed to alter event.

Overrides DefaultPluginManager::getDefinitions

1 call to ViewsBulkOperationsActionManager::getDefinitions()
ViewsBulkOperationsActionManager::getDefinition in src/Service/ViewsBulkOperationsActionManager.php
Gets a specific plugin definition.

File

src/Service/ViewsBulkOperationsActionManager.php, line 100

Class

ViewsBulkOperationsActionManager
Defines Views Bulk Operations action manager.

Namespace

Drupal\views_bulk_operations\Service

Code

public function getDefinitions(array $parameters = []) {
  if (empty($parameters['nocache'])) {
    $definitions = $this
      ->getCachedDefinitions();
  }
  if (!isset($definitions)) {
    $this->alterParameters = $parameters;
    $definitions = $this
      ->findDefinitions($parameters);
    $this
      ->setCachedDefinitions($definitions);
  }
  return $definitions;
}