You are here

public function PluginSelectorBase::isRequired in Plugin 8.2

Returns whether a plugin must be selected.

Return value

bool

Overrides PluginSelectorInterface::isRequired

2 calls to PluginSelectorBase::isRequired()
Radios::buildSelector in src/Plugin/Plugin/PluginSelector/Radios.php
Builds the form elements for the actual plugin selector.
SelectList::buildSelector in src/Plugin/Plugin/PluginSelector/SelectList.php
Builds the form elements for the actual plugin selector.

File

src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php, line 172

Class

PluginSelectorBase
Provides a base plugin selector.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

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