function DevelDumperPluginManager::createInstance

Same name in other branches
  1. 5.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::createInstance()

Overrides PluginManagerBase::createInstance

File

src/DevelDumperPluginManager.php, line 57

Class

DevelDumperPluginManager
Plugin type manager for Devel Dumper plugins.

Namespace

Drupal\devel

Code

public function createInstance($plugin_id, array $configuration = []) {
    if (!$this->isPluginSupported($plugin_id)) {
        $plugin_id = $this->getFallbackPluginId($plugin_id);
    }
    return parent::createInstance($plugin_id, $configuration);
}