function Kint::configure

Same name in other branches
  1. 4.x src/Plugin/Devel/Dumper/Kint.php \Drupal\devel\Plugin\Devel\Dumper\Kint::configure()

Configures kint with more sane values.

1 call to Kint::configure()
Kint::__construct in src/Plugin/Devel/Dumper/Kint.php

File

src/Plugin/Devel/Dumper/Kint.php, line 37

Class

Kint
Provides a Kint dumper plugin.

Namespace

Drupal\devel\Plugin\Devel\Dumper

Code

protected function configure() {
    // Remove resource-hungry plugins.
    \Kint::$plugins = array_diff(\Kint::$plugins, [
        ClassMethodsPlugin::class,
        ClassStaticsPlugin::class,
        IteratorPlugin::class,
    ]);
    \Kint::$aliases = $this->getInternalFunctions();
    RichRenderer::$folder = FALSE;
    BlacklistPlugin::$shallow_blacklist[] = ContainerInterface::class;
}