function ConfigActionManager::createInstance

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

Overrides PluginManagerBase::createInstance

1 call to ConfigActionManager::createInstance()
ConfigActionManager::applyAction in core/lib/Drupal/Core/Config/Action/ConfigActionManager.php
Applies a config action.

File

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

Class

ConfigActionManager

Namespace

Drupal\Core\Config\Action

Code

public function createInstance($plugin_id, array $configuration = []) {
    $instance = parent::createInstance($plugin_id, $configuration);
    // Trigger deprecation notices for renamed plugins.
    if (array_key_exists($plugin_id, self::$deprecatedPluginIds)) {
        // phpcs:ignore Drupal.Semantics.FunctionTriggerError
        @trigger_error(self::$deprecatedPluginIds[$plugin_id]['message'], E_USER_DEPRECATED);
    }
    return $instance;
}

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