function 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 plugin instance based on the provided ID and configuration.
File
-
src/
DevelDumperPluginManager.php, line 49
Class
- DevelDumperPluginManager
- Plugin type manager for Devel Dumper plugins.
Namespace
Drupal\develCode
public function isPluginSupported($plugin_id) : bool {
$definition = $this->getDefinition($plugin_id, FALSE);
return $definition && $definition['supported'];
}