function StubPluginManagerBaseWithMapper::__construct
Same name and namespace 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 <a href="/api/drupal/core%21lib%21Drupal%21Component%21Plugin%21PluginManagerBase.php/class/PluginManagerBase/11.x" title="Base class for plugin managers." class="local">\Drupal\Component\Plugin\PluginManagerBase</a> 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.