StubPluginManagerBaseWithMapper.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Tests\Component\PluginFile
core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.phpView source
<?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;
}
}
Classes
Name | Description |
---|---|
StubPluginManagerBaseWithMapper | Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface. |