function AvailableTestDumper::export

Same name in other branches
  1. 4.x tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::export()

Overrides DevelDumperInterface::export

File

tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php, line 32

Class

AvailableTestDumper
Provides a AvailableTestDumper plugin.

Namespace

Drupal\devel_dumper_test\Plugin\Devel\Dumper

Code

public function export(mixed $input, ?string $name = NULL) : MarkupInterface|string {
    // 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);
}