NotAvailableTestDumper.php
Same filename in other branches
Namespace
Drupal\devel_dumper_test\Plugin\Devel\DumperFile
-
tests/
modules/ devel_dumper_test/ src/ Plugin/ Devel/ Dumper/ NotAvailableTestDumper.php
View source
<?php
namespace Drupal\devel_dumper_test\Plugin\Devel\Dumper;
use Drupal\Component\Render\MarkupInterface;
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) : void {
$input = '<pre>' . $input . '</pre>';
echo $input;
}
/**
* {@inheritdoc}
*/
public function export(mixed $input, ?string $name = NULL) : MarkupInterface|string {
$input = '<pre>' . $input . '</pre>';
return $this->setSafeMarkup($input);
}
/**
* {@inheritdoc}
*/
public static function checkRequirements() : bool {
return FALSE;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
NotAvailableTestDumper | Provides a NotAvailableTestDumper plugin. |