You are here

protected function DefaultPluginManager::getFactory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getFactory()

Gets the plugin factory.

Return value

\Drupal\Component\Plugin\Factory\FactoryInterface

Overrides PluginManagerBase::getFactory

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 254
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;
}