function DefaultPluginManager::getFactory

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getFactory()
  2. 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getFactory()
  3. 11.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getFactory()

Overrides PluginManagerBase::getFactory

1 call to DefaultPluginManager::getFactory()
MigrationPluginManager::createInstances in core/modules/migrate/src/Plugin/MigrationPluginManager.php
Create pre-configured instance of plugin derivatives.

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 277

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;
}

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