function DevelDumperManager::createInstance
Same name in other branches
- 8.x-1.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::createInstance()
- 5.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::createInstance()
Instances a new dumper plugin.
Parameters
string $plugin_id: (optional) The plugin ID, defaults to NULL.
Return value
\Drupal\devel\DevelDumperInterface Returns the devel dumper plugin instance.
1 call to DevelDumperManager::createInstance()
- DevelDumperManager::dumpOrExport in src/
DevelDumperManager.php - Wrapper for ::dump() and ::export().
File
-
src/
DevelDumperManager.php, line 65
Class
- DevelDumperManager
- Class DevelDumperManager.
Namespace
Drupal\develCode
protected function createInstance($plugin_id = NULL) {
if (!$plugin_id || !$this->dumperManager
->isPluginSupported($plugin_id)) {
$plugin_id = $this->config
->get('devel_dumper');
}
return $this->dumperManager
->createInstance($plugin_id);
}