class VisualizationHandlerManager in Visualization API 8
Plugin type manager for all views handlers.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTrait
- class \Drupal\visualization\Plugin\VisualizationHandlerManager
Expanded class hierarchy of VisualizationHandlerManager
1 file declares its use of VisualizationHandlerManager
1 string reference to 'VisualizationHandlerManager'
1 service uses VisualizationHandlerManager
File
- src/
Plugin/ VisualizationHandlerManager.php, line 18 - Definition of Drupal\visualization\Plugin\VisualizationHandlerManager
Namespace
Drupal\visualization\PluginView source
class VisualizationHandlerManager extends PluginManagerBase {
/**
* Constructs a ViewsHandlerManager object.
*
* @param string $type
* The plugin type, for example filter.
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations,
*/
public function __construct($type, \Traversable $namespaces) {
$this->discovery = new AnnotatedClassDiscovery("Plugin/visualization/{$type}", $namespaces);
$this->discovery = new DerivativeDiscoveryDecorator($this->discovery);
$this->factory = new DefaultFactory($this->discovery);
}
}
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:: |
7 |
PluginManagerBase:: |
protected | function | Allows plugin managers to specify custom behavior if a plugin is not found. | 1 |
VisualizationHandlerManager:: |
public | function | Constructs a ViewsHandlerManager object. |