function ConfigActionManager::alterDefinitions

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Config/Action/ConfigActionManager.php \Drupal\Core\Config\Action\ConfigActionManager::alterDefinitions()

Overrides DefaultPluginManager::alterDefinitions

File

core/lib/Drupal/Core/Config/Action/ConfigActionManager.php, line 253

Class

ConfigActionManager

Namespace

Drupal\Core\Config\Action

Code

public function alterDefinitions(&$definitions) : void {
    // Adds backwards compatibility for plugins that have been renamed.
    foreach (self::$deprecatedPluginIds as $legacy => $new_plugin_id) {
        $definitions[$legacy] = $definitions[$new_plugin_id['replacement']];
    }
    parent::alterDefinitions($definitions);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.