public function PluginSelectorBase::setRequired in Plugin 8.2
Sets whether a plugin must be selected.
Parameters
bool $required:
Return value
$this
Overrides PluginSelectorInterface::setRequired
File
- src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php, line 163
Class
- PluginSelectorBase
- Provides a base plugin selector.
Namespace
Drupal\plugin\Plugin\Plugin\PluginSelectorCode
public function setRequired($required = TRUE) {
$this->configuration['required'] = $required;
return $this;
}