protected function DefaultPluginManager::getFactory in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getFactory()
- 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\PluginCode
protected function getFactory() {
if (!$this->factory) {
$this->factory = new ContainerFactory($this, $this->pluginInterface);
}
return $this->factory;
}