You are here

protected function PluginManagerBase::getFactory in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getFactory()
  2. 9 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getFactory()

Gets the plugin factory.

Return value

\Drupal\Component\Plugin\Factory\FactoryInterface

2 calls to PluginManagerBase::getFactory()
PluginManagerBase::createInstance in core/lib/Drupal/Component/Plugin/PluginManagerBase.php
Creates a pre-configured instance of a plugin.
PluginManagerBase::handlePluginNotFound in core/lib/Drupal/Component/Plugin/PluginManagerBase.php
Allows plugin managers to specify custom behavior if a plugin is not found.
1 method overrides PluginManagerBase::getFactory()
DefaultPluginManager::getFactory in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Gets the plugin factory.

File

core/lib/Drupal/Component/Plugin/PluginManagerBase.php, line 50

Class

PluginManagerBase
Base class for plugin managers.

Namespace

Drupal\Component\Plugin

Code

protected function getFactory() {
  return $this->factory;
}