Mercurial > hg > isophonics-drupal-site
annotate core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 <?php |
Chris@17 | 2 |
Chris@17 | 3 namespace Drupal\Tests\Component\Plugin; |
Chris@17 | 4 |
Chris@17 | 5 use Drupal\Component\Plugin\Mapper\MapperInterface; |
Chris@17 | 6 use Drupal\Component\Plugin\PluginManagerBase; |
Chris@17 | 7 |
Chris@17 | 8 /** |
Chris@17 | 9 * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface. |
Chris@17 | 10 */ |
Chris@17 | 11 final class StubPluginManagerBaseWithMapper extends PluginManagerBase { |
Chris@17 | 12 |
Chris@17 | 13 /** |
Chris@17 | 14 * Constructs a new instance. |
Chris@17 | 15 * |
Chris@17 | 16 * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper |
Chris@17 | 17 */ |
Chris@17 | 18 public function __construct(MapperInterface $mapper) { |
Chris@17 | 19 $this->mapper = $mapper; |
Chris@17 | 20 } |
Chris@17 | 21 |
Chris@17 | 22 } |