function DevelDumperPluginManager::processDefinition

Same name in other branches
  1. 5.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) {
    parent::processDefinition($definition, $plugin_id);
    $definition['supported'] = (bool) call_user_func([
        $definition['class'],
        'checkRequirements',
    ]);
}