NotAvailableTestDumper.php

Same filename in other branches
  1. 8.x-1.x tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php
  2. 5.x tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php

Namespace

Drupal\devel_dumper_test\Plugin\Devel\Dumper

File

tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php

View source
<?php

namespace Drupal\devel_dumper_test\Plugin\Devel\Dumper;

use Drupal\devel\DevelDumperBase;

/**
 * Provides a NotAvailableTestDumper plugin.
 *
 * @DevelDumper(
 *   id = "not_available_test_dumper",
 *   label = @Translation("Not available test dumper."),
 *   description = @Translation("Drupal dumper for testing purposes (not available).")
 * )
 */
class NotAvailableTestDumper extends DevelDumperBase {
    
    /**
     * {@inheritdoc}
     */
    public function dump($input, $name = NULL) {
        $input = '<pre>' . $input . '</pre>';
        echo $input;
    }
    
    /**
     * {@inheritdoc}
     */
    public function export($input, $name = NULL) {
        $input = '<pre>' . $input . '</pre>';
        return $this->setSafeMarkup($input);
    }
    
    /**
     * {@inheritdoc}
     */
    public static function checkRequirements() {
        return FALSE;
    }

}

Classes

Title Deprecated Summary
NotAvailableTestDumper Provides a NotAvailableTestDumper plugin.