annotate core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
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 }