class ChromePhp

Provides a ChromePhp dumper plugin.

Plugin annotation


@DevelDumper(
  id = "chromephp",
  label = @Translation("ChromePhp"),
  description = @Translation("Wrapper for <a href='https://craig.is/writing/chrome-logger'>ChromePhp</a> debugging tool.")
)

Hierarchy

Expanded class hierarchy of ChromePhp

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

File

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

Namespace

Drupal\devel\Plugin\Devel\Dumper
View source
class ChromePhp extends DevelDumperBase {
    
    /**
     * {@inheritdoc}
     */
    public function dump($input, $name = NULL) {
        \ChromePhp::log($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('ChromePhp', TRUE);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ChromePhp::checkRequirements public static function Checks if requirements for this plugin are satisfied. Overrides DevelDumperInterface::checkRequirements
ChromePhp::dump public function Dumps information about a variable. Overrides DevelDumperBase::dump
ChromePhp::export public function Returns a string representation of a variable. Overrides DevelDumperInterface::export
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().