You are here

protected function DefaultPluginManager::getFactory in Drupal 9

Same name and namespace in other branches
  1. 8 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()

Gets the plugin factory.

Return value

\Drupal\Component\Plugin\Factory\FactoryInterface

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 270

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