protected function PluginSelectorBase::validateSelectablePluginType in Plugin 8.2
Validates the selectable plugin type.
@throw \RuntimeException
4 calls to PluginSelectorBase::validateSelectablePluginType()
- PluginSelectorBase::buildSelectorForm in src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php - Builds the selector form.
- PluginSelectorBase::setSelectablePluginDiscovery in src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php - Overrides the plugin type's discovery.
- PluginSelectorBase::setSelectablePluginFactory in src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php - Overrides the plugin type's factory.
- PluginSelectorBase::setSelectedPlugin in src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php - Sets the selected plugin.
File
- src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php, line 305
Class
- PluginSelectorBase
- Provides a base plugin selector.
Namespace
Drupal\plugin\Plugin\Plugin\PluginSelectorCode
protected function validateSelectablePluginType() {
if (!$this->selectablePluginType) {
throw new \RuntimeException('A plugin type must be set through static::setSelectablePluginType() first.');
}
}