function StubPluginManagerBaseWithMapper::__construct
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
- 8.9.x core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper::__construct()
- 10 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\PluginCode
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.