Mercurial > hg > cmmr2012-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php Thu Feb 28 13:11:55 2019 +0000 @@ -0,0 +1,22 @@ +<?php + +namespace Drupal\Tests\Component\Plugin; + +use Drupal\Component\Plugin\Mapper\MapperInterface; +use Drupal\Component\Plugin\PluginManagerBase; + +/** + * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface. + */ +final class StubPluginManagerBaseWithMapper extends PluginManagerBase { + + /** + * Constructs a new instance. + * + * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper + */ + public function __construct(MapperInterface $mapper) { + $this->mapper = $mapper; + } + +}