You are here

public function NotAvailableTestDumper::export in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\NotAvailableTestDumper::export()
  2. 8.2 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\NotAvailableTestDumper::export()
  3. 4.x tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\NotAvailableTestDumper::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/NotAvailableTestDumper.php, line 29

Class

NotAvailableTestDumper
Provides a NotAvailableTestDumper plugin.

Namespace

Drupal\devel_dumper_test\Plugin\Devel\Dumper

Code

public function export($input, $name = NULL) {
  $input = '<pre>' . $input . '</pre>';
  return $this
    ->setSafeMarkup($input);
}