public function PluginSelectorInterface::setRequired in Plugin 8.2
Sets whether a plugin must be selected.
Parameters
bool $required:
Return value
$this
1 method overrides PluginSelectorInterface::setRequired()
- PluginSelectorBase::setRequired in src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorBase.php - Sets whether a plugin must be selected.
File
- src/
Plugin/ Plugin/ PluginSelector/ PluginSelectorInterface.php, line 56
Class
- PluginSelectorInterface
- Defines a plugin to select and configure another plugin.
Namespace
Drupal\plugin\Plugin\Plugin\PluginSelectorCode
public function setRequired($required = TRUE);