You are here

public function PluginSelectorInterface::setSelectablePluginFactory in Plugin 8.2

Overrides the plugin type's factory.

Parameters

\Drupal\Component\Plugin\Factory\FactoryInterface $plugin_factory:

Return value

$this

Throws

\RuntimeException Thrown if the plugin type was not set using self::setSelectablePluginType().

1 method overrides PluginSelectorInterface::setSelectablePluginFactory()
PluginSelectorBase::setSelectablePluginFactory in src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php
Overrides the plugin type's factory.

File

src/Plugin/Plugin/PluginSelector/PluginSelectorInterface.php, line 179

Class

PluginSelectorInterface
Defines a plugin to select and configure another plugin.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function setSelectablePluginFactory(FactoryInterface $plugin_factory);