public function AvailableTestDumper::export in Devel 4.x
Same name and namespace in other branches
- 8.3 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::export()
- 8 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::export()
- 8.2 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::export()
Returns a string representation of a variable.
Parameters
mixed $input: The variable to export.
string $name: (optional) The label to output before variable, defaults to NULL.
Return value
string String representation of a variable.
Overrides DevelDumperInterface::export
File
- tests/
modules/ devel_dumper_test/ src/ Plugin/ Devel/ Dumper/ AvailableTestDumper.php, line 31
Class
- AvailableTestDumper
- Provides a AvailableTestDumper plugin.
Namespace
Drupal\devel_dumper_test\Plugin\Devel\DumperCode
public function export($input, $name = NULL) {
// Add a predetermined string to $input to check if this dumper has been
// selected successfully.
$input = '<pre>' . 'AvailableTestDumper::export() ' . $input . '</pre>';
return $this
->setSafeMarkup($input);
}