You are here

public function StubPluginManagerBaseWithMapper::__construct in Drupal 8

Same name and namespace in other branches
  1. 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:

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