final class StubPluginManagerBaseWithMapper in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper
- 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper
Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTrait
- class \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper
Expanded class hierarchy of StubPluginManagerBaseWithMapper
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ StubPluginManagerBaseWithMapper.php, line 11
Namespace
Drupal\Tests\Component\PluginView source
final class StubPluginManagerBaseWithMapper extends PluginManagerBase {
/**
* Constructs a new instance.
*
* @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
* The plugin mapper interface.
*/
public function __construct(MapperInterface $mapper) {
$this->mapper = $mapper;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryTrait:: |
protected | function | Gets a specific plugin definition. | |
DiscoveryTrait:: |
public | function | ||
PluginManagerBase:: |
protected | property | The object that discovers plugins managed by this manager. | |
PluginManagerBase:: |
protected | property | The object that instantiates plugins managed by this manager. | |
PluginManagerBase:: |
protected | property | The object that returns the preconfigured plugin instance appropriate for a particular runtime condition. | |
PluginManagerBase:: |
public | function |
Creates a pre-configured instance of a plugin. Overrides FactoryInterface:: |
12 |
PluginManagerBase:: |
public | function |
Gets a specific plugin definition. Overrides DiscoveryTrait:: |
|
PluginManagerBase:: |
public | function |
Gets the definition of all plugins for this type. Overrides DiscoveryTrait:: |
|
PluginManagerBase:: |
protected | function | Gets the plugin discovery. | 1 |
PluginManagerBase:: |
protected | function | Gets the plugin factory. | 1 |
PluginManagerBase:: |
public | function |
Gets a preconfigured instance of a plugin. Overrides MapperInterface:: |
6 |
PluginManagerBase:: |
protected | function | Allows plugin managers to specify custom behavior if a plugin is not found. | 1 |
StubPluginManagerBaseWithMapper:: |
public | function | Constructs a new instance. |