You are here

public function PluginSelectorInterface::setSelectedPlugin in Plugin 8.2

Sets the selected plugin.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $plugin:

Return value

$this

1 method overrides PluginSelectorInterface::setSelectedPlugin()
PluginSelectorBase::setSelectedPlugin in src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php
Sets the selected plugin.

File

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

Class

PluginSelectorInterface
Defines a plugin to select and configure another plugin.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function setSelectedPlugin(PluginInspectionInterface $plugin);