class FirePhp

Provides a FirePhp dumper plugin.

Plugin annotation


@DevelDumper(
  id = "firephp",
  label = @Translation("FirePhp"),
  description = @Translation("Wrapper for <a href='http://www.firephp.org'>FirePhp</a> debugging tool.")
)

Hierarchy

Expanded class hierarchy of FirePhp

4 string references to 'FirePhp'
DevelDumperTest::testDumpersConfiguration in tests/src/Functional/DevelDumperTest.php
Test dumpers configuration page.
dfb in ./devel.module
Wrapper for DevelDumperManager::dump().
dfbt in ./devel.module
Wrapper for DevelDumperManager::dump().
FirePhp::checkRequirements in src/Plugin/Devel/Dumper/FirePhp.php
Checks if requirements for this plugin are satisfied.

File

src/Plugin/Devel/Dumper/FirePhp.php, line 16

Namespace

Drupal\devel\Plugin\Devel\Dumper
View source
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);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DevelDumperBase::exportAsRenderable public function Returns a string representation of a variable wrapped in a render array. Overrides DevelDumperInterface::exportAsRenderable 3
DevelDumperBase::setSafeMarkup protected function Wrapper for \Drupal\Core\Render\Markup::create().
FirePhp::checkRequirements public static function Checks if requirements for this plugin are satisfied. Overrides DevelDumperInterface::checkRequirements
FirePhp::dump public function Dumps information about a variable. Overrides DevelDumperBase::dump
FirePhp::export public function Returns a string representation of a variable. Overrides DevelDumperInterface::export