Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\Component\Plugin; | |
4 | |
5 use Drupal\Component\Plugin\Mapper\MapperInterface; | |
6 use Drupal\Component\Plugin\PluginManagerBase; | |
7 | |
8 /** | |
9 * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface. | |
10 */ | |
11 final class StubPluginManagerBaseWithMapper extends PluginManagerBase { | |
12 | |
13 /** | |
14 * Constructs a new instance. | |
15 * | |
16 * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper | |
17 */ | |
18 public function __construct(MapperInterface $mapper) { | |
19 $this->mapper = $mapper; | |
20 } | |
21 | |
22 } |