You are here

protected function Kint::configure in Devel 8.3

Same name and namespace 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
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

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

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, [
    'Kint\\Parser\\ClassMethodsPlugin',
    'Kint\\Parser\\ClassStaticsPlugin',
    'Kint\\Parser\\IteratorPlugin',
  ]);
  \Kint::$aliases = $this
    ->getInternalFunctions();
  RichRenderer::$folder = FALSE;
  BlacklistPlugin::$shallow_blacklist[] = ContainerInterface::class;
}