public function PluginManagerBase::hasDefinition in Service Container 7
Same name and namespace in other branches
- 7.2 src/Plugin/PluginManagerBase.php \Drupal\service_container\Plugin\PluginManagerBase::hasDefinition()
Indicates if a specific plugin definition exists.
Parameters
string $plugin_id: A plugin ID.
Return value
bool TRUE if the definition exists, FALSE otherwise.
Overrides DiscoveryInterface::hasDefinition
File
- src/
Plugin/ PluginManagerBase.php, line 50 - Contains \Drupal\service_container\Plugin\PluginManagerBase
Class
- PluginManagerBase
- Base class for plugin managers.
Namespace
Drupal\service_container\PluginCode
public function hasDefinition($plugin_id) {
return (bool) $this->discovery
->hasDefinition($plugin_id);
}