3 namespace Drupal\devel\Plugin\Devel\Dumper;
5 use Drupal\devel\DevelDumperBase;
8 * Provides a ChromePhp dumper plugin.
12 * label = @Translation("ChromePhp"),
13 * description = @Translation("Wrapper for <a href='https://craig.is/writing/chrome-logger'>ChromePhp</a> debugging tool.")
16 class ChromePhp extends DevelDumperBase {
21 public function dump($input, $name = NULL) {
22 \ChromePhp::log($input);
28 public function export($input, $name = NULL) {
30 return $this->t('Dump was redirected to the console.');
36 public static function checkRequirements() {
37 return class_exists('ChromePhp', TRUE);