class StubPluginManagerBaseWithMapper

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper
  2. 10 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper
  3. 8.9.x core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php \Drupal\Tests\Component\Plugin\StubPluginManagerBaseWithMapper

Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.

Hierarchy

Expanded class hierarchy of StubPluginManagerBaseWithMapper

File

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

Namespace

Drupal\Tests\Component\Plugin
View source
final class StubPluginManagerBaseWithMapper extends PluginManagerBase {
  
  /**
   * Constructs a new instance.
   *
   * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
   *   The plugin mapper interface.
   */
  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.