function StubPluginManagerBaseWithMapper::__construct

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
  2. 8.9.x 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: The plugin mapper interface.

File

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

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

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