interface PluginTypeManagerInterface in Plugin 8.2
Defines a plugin type manager.
Hierarchy
- interface \Drupal\plugin\PluginType\PluginTypeManagerInterface
Expanded class hierarchy of PluginTypeManagerInterface
All classes that implement PluginTypeManagerInterface
11 files declare their use of PluginTypeManagerInterface
- ListPluginTypes.php in src/
Controller/ ListPluginTypes.php - ListPluginTypesTest.php in tests/
src/ Unit/ Controller/ ListPluginTypesTest.php - PluginCollectionItemDeriver.php in src/
Plugin/ Field/ FieldType/ PluginCollectionItemDeriver.php - PluginCollectionItemDeriverTest.php in tests/
src/ Unit/ Plugin/ Field/ FieldType/ PluginCollectionItemDeriverTest.php - PluginCommands.php in src/
Commands/ PluginCommands.php
File
- src/
PluginType/ PluginTypeManagerInterface.php, line 8
Namespace
Drupal\plugin\PluginTypeView source
interface PluginTypeManagerInterface {
/**
* Checks whether a plugin type is known.
*
* @param string $id
* The plugin type's ID.
*
* @return bool
*/
public function hasPluginType($id);
/**
* Gets a known plugin type.
*
* @param string $id
* The plugin type's ID.
*
* @return \Drupal\plugin\PluginType\PluginTypeInterface
*
* @throws \InvalidArgumentException
* Thrown if the plugin type is unknown.
*/
public function getPluginType($id);
/**
* Gets the known plugin types.
*
* @return \Drupal\plugin\PluginType\PluginTypeInterface[]
*/
public function getPluginTypes();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginTypeManagerInterface:: |
public | function | Gets a known plugin type. | 1 |
PluginTypeManagerInterface:: |
public | function | Gets the known plugin types. | 1 |
PluginTypeManagerInterface:: |
public | function | Checks whether a plugin type is known. | 1 |