You are here

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\PluginSelector

Code

public function setRequired($required = TRUE) {
  $this->configuration['required'] = $required;
  return $this;
}