annotate 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
rev   line source
Chris@4 1 <?php
Chris@4 2
Chris@4 3 namespace Drupal\Tests\Component\Plugin;
Chris@4 4
Chris@4 5 use Drupal\Component\Plugin\Mapper\MapperInterface;
Chris@4 6 use Drupal\Component\Plugin\PluginManagerBase;
Chris@4 7
Chris@4 8 /**
Chris@4 9 * Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.
Chris@4 10 */
Chris@4 11 final class StubPluginManagerBaseWithMapper extends PluginManagerBase {
Chris@4 12
Chris@4 13 /**
Chris@4 14 * Constructs a new instance.
Chris@4 15 *
Chris@4 16 * @param \Drupal\Component\Plugin\Mapper\MapperInterface $mapper
Chris@4 17 */
Chris@4 18 public function __construct(MapperInterface $mapper) {
Chris@4 19 $this->mapper = $mapper;
Chris@4 20 }
Chris@4 21
Chris@4 22 }