class DevelImageProviderPluginManager in Devel images provider 8
Devel image provider Plugin manager.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTrait
- class \Drupal\devel_image_provider\Plugin\Type\DevelImageProviderPluginManager
Expanded class hierarchy of DevelImageProviderPluginManager
File
- lib/
Drupal/ devel_image_provider/ Plugin/ Type/ DevelImageProviderPluginManager.php, line 19 - Contains \Drupal\devel_image_provider\DevelImageProviderPluginManager.
Namespace
Drupal\devel_image_provider\Plugin\TypeView source
class DevelImageProviderPluginManager extends PluginManagerBase {
/**
* Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().
*
* @param array $namespaces
* An array of paths keyed by it's corresponding namespaces.
*/
public function __construct(array $namespaces) {
$this->discovery = new AnnotatedClassDiscovery('devel_image_provider', 'provider', $namespaces);
$this->discovery = new AlterDecorator($this->discovery, 'devel_image_provider_plugin_info');
//$this->discovery = new CacheDecorator($this->discovery, 'devel_image_provider_plugin');
$this->factory = new DefaultFactory($this->discovery);
}
/**
* Overrides \Drupal\Component\Plugin\PluginManagerBase::getInstance().
*/
public function getInstance(array $options) {
if (isset($options['id'])) {
return $this
->createInstance($options['id']);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DevelImageProviderPluginManager:: |
public | function |
Overrides \Drupal\Component\Plugin\PluginManagerBase::getInstance(). Overrides PluginManagerBase:: |
|
DevelImageProviderPluginManager:: |
public | function | Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct(). | |
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:: |
protected | function | Allows plugin managers to specify custom behavior if a plugin is not found. | 1 |