function PluginManagerBase::getFactory

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getFactory()
  2. 8.9.x core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getFactory()
  3. 11.x core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getFactory()

Gets the plugin factory.

Return value

\Drupal\Component\Plugin\Factory\FactoryInterface

1 method overrides PluginManagerBase::getFactory()
DefaultPluginManager::getFactory in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Gets the plugin factory.

File

core/lib/Drupal/Component/Plugin/PluginManagerBase.php, line 50

Class

PluginManagerBase
Base class for plugin managers.

Namespace

Drupal\Component\Plugin

Code

protected function getFactory() {
    return $this->factory;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.