You are here

public function PluginSelectorInterface::setSelectablePluginDiscovery in Plugin 8.2

Overrides the plugin type's discovery.

Parameters

\Drupal\Component\Plugin\Discovery\DiscoveryInterface:

Return value

$this

Throws

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

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

File

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

Class

PluginSelectorInterface
Defines a plugin to select and configure another plugin.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function setSelectablePluginDiscovery(DiscoveryInterface $plugin_discovery);