function DevelDumperManager::dumpOrExport
Same name in other branches
- 8.x-1.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::dumpOrExport()
- 5.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::dumpOrExport()
Overrides DevelDumperManagerInterface::dumpOrExport
File
-
src/
DevelDumperManager.php, line 117
Class
- DevelDumperManager
- Class DevelDumperManager.
Namespace
Drupal\develCode
public function dumpOrExport($input, $name = NULL, $export = TRUE, $plugin_id = NULL) {
if ($this->hasAccessToDevelInformation()) {
$dumper = $this->createInstance($plugin_id);
if ($export) {
return $dumper->export($input, $name);
}
$dumper->dump($input, $name);
}
return NULL;
}