You are here

class FeedsPluginManager in Feeds 8.2

Manages feeds plugins.

Hierarchy

Expanded class hierarchy of FeedsPluginManager

1 string reference to 'FeedsPluginManager'
feeds.services.yml in ./feeds.services.yml
feeds.services.yml
3 services use FeedsPluginManager
plugin.manager.feeds.fetcher in ./feeds.services.yml
Drupal\feeds\Plugin\FeedsPluginManager
plugin.manager.feeds.parser in ./feeds.services.yml
Drupal\feeds\Plugin\FeedsPluginManager
plugin.manager.feeds.processor in ./feeds.services.yml
Drupal\feeds\Plugin\FeedsPluginManager

File

lib/Drupal/feeds/Plugin/FeedsPluginManager.php, line 18
Contains \Drupal\feeds\Plugin\FeedsPluginManager.

Namespace

Drupal\feeds\Plugin
View source
class FeedsPluginManager extends PluginManagerBase {

  /**
   * Constructs a FeedsPluginManager object.
   *
   * @param string $type
   *   The plugin type, for example fetcher.
   * @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("feeds/{$type}", $namespaces);
    $this->discovery = new CacheDecorator($this->discovery, "feeds_{$type}:" . language(LANGUAGE_TYPE_INTERFACE)->langcode);
    $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
FeedsPluginManager::__construct public function Constructs a FeedsPluginManager object.
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