public function DevelDumperPluginManager::processDefinition in Devel 8
Same name and namespace in other branches
- 8.3 src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::processDefinition()
- 8.2 src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::processDefinition()
- 4.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::processDefinition()
Performs extra processing on plugin definitions.
By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.
Overrides DefaultPluginManager::processDefinition
File
- src/
DevelDumperPluginManager.php, line 40
Class
- DevelDumperPluginManager
- Plugin type manager for Devel Dumper plugins.
Namespace
Drupal\develCode
public function processDefinition(&$definition, $plugin_id) {
parent::processDefinition($definition, $plugin_id);
$definition['supported'] = (bool) call_user_func([
$definition['class'],
'checkRequirements',
]);
}