function DevelDumperManager::export
Same name in other branches
- 4.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::export()
Overrides DevelDumperManagerInterface::export
1 call to DevelDumperManager::export()
- DevelDumperManager::message in src/
DevelDumperManager.php - Sets a message with a string representation of a variable.
File
-
src/
DevelDumperManager.php, line 112
Class
- DevelDumperManager
- Manager class for DevelDumper.
Namespace
Drupal\develCode
public function export(mixed $input, ?string $name = NULL, ?string $plugin_id = NULL, bool $load_references = FALSE) : MarkupInterface|string {
if (!$this->hasAccessToDevelInformation()) {
return '';
}
if ($load_references && $input instanceof EntityInterface) {
$input = $this->entityToArrayWithReferences($input);
}
return $this->createInstance($plugin_id)
->export($input, $name);
}