You are here

public function AvailableTestDumper::dump in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::dump()
  2. 8.2 tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::dump()
  3. 4.x tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php \Drupal\devel_dumper_test\Plugin\Devel\Dumper\AvailableTestDumper::dump()

Dumps information about a variable.

Parameters

mixed $input: The variable to dump.

string $name: (optional) The label to output before variable, defaults to NULL.

Overrides DevelDumperBase::dump

File

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

Class

AvailableTestDumper
Provides a AvailableTestDumper plugin.

Namespace

Drupal\devel_dumper_test\Plugin\Devel\Dumper

Code

public function dump($input, $name = NULL) {

  // Add a predetermined string to $input to check if this dumper has been
  // selected successfully.
  $input = '<pre>' . 'AvailableTestDumper::dump() ' . $input . '</pre>';
  echo $input;
}