Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DefaultPluginManager.php

function DefaultPluginManager::alterDefinitions

Invokes the hook to alter the definitions if the alter hook is set.

Parameters

$definitions: The discovered plugin definitions.

12 calls to DefaultPluginManager::alterDefinitions()
ComponentPluginManager::alterDefinitions in core/lib/Drupal/Core/Theme/ComponentPluginManager.php
Invokes the hook to alter the definitions if the alter hook is set.
ComponentPluginManager::alterDefinitions in core/lib/Drupal/Core/Theme/ComponentPluginManager.php
Invokes the hook to alter the definitions if the alter hook is set.
ConfigActionManager::alterDefinitions in core/lib/Drupal/Core/Config/Action/ConfigActionManager.php
Invokes the hook to alter the definitions if the alter hook is set.
ConfigActionManager::alterDefinitions in core/lib/Drupal/Core/Config/Action/ConfigActionManager.php
Invokes the hook to alter the definitions if the alter hook is set.
DefaultPluginManager::findDefinitions in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Finds plugin definitions.

... See full list

4 methods override DefaultPluginManager::alterDefinitions()
ComponentPluginManager::alterDefinitions in core/lib/Drupal/Core/Theme/ComponentPluginManager.php
Invokes the hook to alter the definitions if the alter hook is set.
ConfigActionManager::alterDefinitions in core/lib/Drupal/Core/Config/Action/ConfigActionManager.php
Invokes the hook to alter the definitions if the alter hook is set.
FieldTypeCategoryManager::alterDefinitions in core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php
Invokes the hook to alter the definitions if the alter hook is set.
TypedConfigManager::alterDefinitions in core/lib/Drupal/Core/Config/TypedConfigManager.php
Invokes the hook to alter the definitions if the alter hook is set.

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 384

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function alterDefinitions(&$definitions) {
    if ($this->alterHook) {
        $this->moduleHandler
            ->alter($this->alterHook, $definitions);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal