public function PluginSelectorBase::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().
Overrides PluginSelectorInterface::setSelectablePluginFactory
File
- src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php, line 284
Class
- PluginSelectorBase
- Provides a base plugin selector.
Namespace
Drupal\plugin\Plugin\Plugin\PluginSelectorCode
public function setSelectablePluginFactory(FactoryInterface $plugin_factory) {
$this
->validateSelectablePluginType();
$this->selectablePluginFactory = $plugin_factory;
return $this;
}