public function PluginTypeManager::hasPluginType in Plugin 8.2
Checks whether a plugin type is known.
Parameters
string $id: The plugin type's ID.
Return value
bool
Overrides PluginTypeManagerInterface::hasPluginType
File
- src/
PluginType/ PluginTypeManager.php, line 55
Class
- PluginTypeManager
- Provides a plugin type manager.
Namespace
Drupal\plugin\PluginTypeCode
public function hasPluginType($id) {
return isset($this
->getPluginTypes()[$id]);
}