You are here

FirePhp.php in Devel 8.2

Same filename and directory in other branches
  1. 8 src/Plugin/Devel/Dumper/FirePhp.php

File

src/Plugin/Devel/Dumper/FirePhp.php
View source
<?php

namespace Drupal\devel\Plugin\Devel\Dumper;

use Drupal\devel\DevelDumperBase;

/**
 * Provides a FirePhp dumper plugin.
 *
 * @DevelDumper(
 *   id = "firephp",
 *   label = @Translation("FirePhp"),
 *   description = @Translation("Wrapper for <a href='http://www.firephp.org'>FirePhp</a> debugging tool.")
 * )
 */
class FirePhp extends DevelDumperBase {

  /**
   * {@inheritdoc}
   */
  public function dump($input, $name = NULL) {
    $fb = new \FB();
    $fb
      ->dump($name, $input);
  }

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

  /**
   * {@inheritdoc}
   */
  public static function checkRequirements() {
    return class_exists('FirePHP', TRUE);
  }

}

Classes

Namesort descending Description
FirePhp Provides a FirePhp dumper plugin.