You are here

public function StubPluginManagerBaseWithMapper::__construct 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::__construct()

Constructs a new instance.

Parameters

\Drupal\Component\Plugin\Mapper\MapperInterface $mapper:

File

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

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