Mercurial > hg > isophonics-drupal-site
annotate core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
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 } |