You are here

public function ChromePhp::export in Devel 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Devel/Dumper/ChromePhp.php \Drupal\devel\Plugin\Devel\Dumper\ChromePhp::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

src/Plugin/Devel/Dumper/ChromePhp.php, line 28

Class

ChromePhp
Provides a ChromePhp dumper plugin.

Namespace

Drupal\devel\Plugin\Devel\Dumper

Code

public function export($input, $name = NULL) {
  $this
    ->dump($input);
  return $this
    ->t('Dump was redirected to the console.');
}