You are here

final class StubPluginManagerBaseWithMapper in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper

Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.

Hierarchy

Expanded class hierarchy of StubPluginManagerBaseWithMapper

File

core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php, line 11

Namespace

Drupal\Tests\Component\Plugin
View source
final class StubPluginManagerBaseWithMapper extends PluginManagerBase {

  /**
   * Constructs a new instance.
   *
   * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
   */
  public function __construct(MapperInterface $mapper) {
    $this->mapper = $mapper;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::hasDefinition public function
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::$mapper protected property The object that returns the preconfigured plugin instance appropriate for a particular runtime condition.
PluginManagerBase::createInstance public function Creates a pre-configured instance of a plugin. Overrides FactoryInterface::createInstance 12
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryTrait::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryTrait::getDefinitions
PluginManagerBase::getDiscovery protected function Gets the plugin discovery. 1
PluginManagerBase::getFactory protected function Gets the plugin factory. 1
PluginManagerBase::getInstance public function Gets a preconfigured instance of a plugin. Overrides MapperInterface::getInstance 6
PluginManagerBase::handlePluginNotFound protected function Allows plugin managers to specify custom behavior if a plugin is not found. 1
StubPluginManagerBaseWithMapper::__construct public function Constructs a new instance.