You are here

class VisualizationHandlerManager in Visualization API 8

Plugin type manager for all views handlers.

Hierarchy

Expanded class hierarchy of VisualizationHandlerManager

1 file declares its use of VisualizationHandlerManager
VisualizationSettingsForm.php in src/Form/VisualizationSettingsForm.php
1 string reference to 'VisualizationHandlerManager'
visualization.services.yml in ./visualization.services.yml
visualization.services.yml
1 service uses VisualizationHandlerManager
plugin.manager.visualization.handler in ./visualization.services.yml
Drupal\visualization\Plugin\VisualizationHandlerManager

File

src/Plugin/VisualizationHandlerManager.php, line 18
Definition of Drupal\visualization\Plugin\VisualizationHandlerManager

Namespace

Drupal\visualization\Plugin
View 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

Namesort descending Modifiers Type Description Overrides
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::hasDefinition public function
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::$mapper protected property The object that returns the preconfigured plugin instance appropriate for a particular runtime condition.
PluginManagerBase::createInstance public function Creates a pre-configured instance of a plugin. Overrides FactoryInterface::createInstance 12
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryTrait::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryTrait::getDefinitions
PluginManagerBase::getDiscovery protected function Gets the plugin discovery. 1
PluginManagerBase::getFactory protected function Gets the plugin factory. 1
PluginManagerBase::getInstance public function Gets a preconfigured instance of a plugin. Overrides MapperInterface::getInstance 7
PluginManagerBase::handlePluginNotFound protected function Allows plugin managers to specify custom behavior if a plugin is not found. 1
VisualizationHandlerManager::__construct public function Constructs a ViewsHandlerManager object.