3 namespace Drupal\Tests\Component\Plugin;
5 use Drupal\Component\Plugin\Mapper\MapperInterface;
6 use Drupal\Component\Plugin\PluginManagerBase;
9 * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.
11 final class StubPluginManagerBaseWithMapper extends PluginManagerBase {
14 * Constructs a new instance.
16 * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
18 public function __construct(MapperInterface $mapper) {
19 $this->mapper = $mapper;