You are here

public function StubPluginManagerBaseWithMapper::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
  2. 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()

Constructs a new instance.

Parameters

\Drupal\Component\Plugin\Mapper\MapperInterface $mapper: The plugin mapper interface.

File

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

Class

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

Namespace

Drupal\Tests\Component\Plugin

Code

public function __construct(MapperInterface $mapper) {
  $this->mapper = $mapper;
}