function StubPluginManagerBaseWithMapper::__construct

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
  2. 10 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
  3. 11.x 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 <a href="/api/drupal/core%21lib%21Drupal%21Component%21Plugin%21PluginManagerBase.php/class/PluginManagerBase/8.9.x" title="Base class for plugin managers." class="local">\Drupal\Component\Plugin\PluginManagerBase</a> to take a MapperInterface.

Namespace

Drupal\Tests\Component\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.