You are here

protected function DefaultPluginManager::getFactory in Plug 7

Gets the plugin factory.

Return value

\Drupal\Component\Plugin\Factory\FactoryInterface

Overrides PluginManagerBase::getFactory

File

lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 269
Contains \Drupal\Core\Plugin\DefaultPluginManager.

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function getFactory() {
  if (!$this->factory) {
    $this->factory = new ContainerFactory($this, $this->pluginInterface);
  }
  return $this->factory;
}