function DevelDumperPluginManager::processDefinition

Same name in other branches
  1. 8.x-1.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::processDefinition()
  2. 4.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::processDefinition()

Overrides DefaultPluginManager::processDefinition

File

src/DevelDumperPluginManager.php, line 40

Class

DevelDumperPluginManager
Plugin type manager for Devel Dumper plugins.

Namespace

Drupal\devel

Code

public function processDefinition(&$definition, $plugin_id) : void {
    parent::processDefinition($definition, $plugin_id);
    $definition['supported'] = (bool) call_user_func([
        $definition['class'],
        'checkRequirements',
    ]);
}