StubPluginManagerBaseWithMapper.php

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php
  2. 8.9.x core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php
  3. 11.x core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php

Namespace

Drupal\Tests\Component\Plugin

File

core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php

View source
<?php

declare (strict_types=1);
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
     *   The plugin mapper interface.
     */
    public function __construct(MapperInterface $mapper) {
        $this->mapper = $mapper;
    }

}

Classes

Title Deprecated Summary
StubPluginManagerBaseWithMapper Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.