class StubPluginManagerBase

A class extending PluginManagerBase for testing purposes.

Hierarchy

Expanded class hierarchy of StubPluginManagerBase

File

core/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBase.php, line 12

Namespace

Drupal\Tests\Component\Plugin
View source
class StubPluginManagerBase extends PluginManagerBase {

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::hasDefinition public function
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::$mapper protected property The preconfigured plugin instance for a particular runtime condition.
PluginManagerBase::createInstance public function Creates a plugin instance based on the provided ID and configuration. Overrides FactoryInterface::createInstance 15
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryTrait::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryTrait::getDefinitions
PluginManagerBase::getDiscovery protected function Gets the plugin discovery. 1
PluginManagerBase::getFactory protected function Gets the plugin factory. 1
PluginManagerBase::getFallbackPluginId protected function Gets a fallback id for a missing plugin. 6
PluginManagerBase::getInstance public function Gets or creates a plugin instance that satisfies the given options. Overrides MapperInterface::getInstance 6
PluginManagerBase::handlePluginNotFound protected function Allows plugin managers to specify custom behavior if a plugin is not found. 1

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