public function DevelDumperPluginManager::isPluginSupported in Devel 8
Same name and namespace in other branches
- 8.3 src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::isPluginSupported()
- 8.2 src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::isPluginSupported()
- 4.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::isPluginSupported()
Checks if plugin has a definition and is supported.
Parameters
string $plugin_id: The ID of the plugin to check.
Return value
bool TRUE if the plugin is supported, FALSE otherwise.
Overrides DevelDumperPluginManagerInterface::isPluginSupported
1 call to DevelDumperPluginManager::isPluginSupported()
- DevelDumperPluginManager::createInstance in src/
DevelDumperPluginManager.php - Creates a pre-configured instance of a plugin.
File
- src/
DevelDumperPluginManager.php, line 49
Class
- DevelDumperPluginManager
- Plugin type manager for Devel Dumper plugins.
Namespace
Drupal\develCode
public function isPluginSupported($plugin_id) {
$definition = $this
->getDefinition($plugin_id, FALSE);
return $definition && $definition['supported'];
}