Commit 6385f7cd authored by willzyx's avatar willzyx
Browse files

Issue #2840361 by willzyx: Add default implementation of ::dump() method in DevelDumperBase

parent 34888a40
......@@ -24,13 +24,6 @@ class Kint extends DevelDumperBase {
kint_require();
}
/**
* {@inheritdoc}
*/
public function dump($input, $name = NULL) {
echo (string) $this->export($input, $name);
}
/**
* {@inheritdoc}
*/
......
......@@ -15,6 +15,13 @@ use Drupal\Core\Plugin\PluginBase;
*/
abstract class DevelDumperBase extends PluginBase implements DevelDumperInterface {
/**
* {@inheritdoc}
*/
public function dump($input, $name = NULL) {
echo (string) $this->export($input, $name);
}
/**
* {@inheritdoc}
*/
......
......@@ -16,13 +16,6 @@ use Drupal\devel\DevelDumperBase;
*/
class DoctrineDebug extends DevelDumperBase {
/**
* {@inheritdoc}
*/
public function dump($input, $name = NULL) {
echo (string) $this->export($input, $name);
}
/**
* {@inheritdoc}
*/
......
......@@ -16,13 +16,6 @@ use Drupal\devel\DevelDumperBase;
*/
class DrupalVariable extends DevelDumperBase {
/**
* {@inheritdoc}
*/
public function dump($input, $name = NULL) {
echo (string) $this->export($input, $name);
}
/**
* {@inheritdoc}
*/
......
......@@ -19,13 +19,6 @@ use Symfony\Component\VarDumper\Dumper\HtmlDumper;
*/
class VarDumper extends DevelDumperBase {
/**
* {@inheritdoc}
*/
public function dump($input, $name = NULL) {
echo (string) $this->export($input, $name);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment