You are here

public function PluginSelectorBase::buildSelectorForm in Plugin 8.2

Builds the selector form.

Parameters

mixed[] $form: Any suggested form elements to build upon. May be ignored.

\Drupal\Core\Form\FormStateInterface $form_state: The form state for $form and the return value. This often is not the complete (global) form state.

Return value

mixed[] The form structure.

Throws

\RuntimeException Thrown if the plugin type was not set using self::setSelectablePluginType().

Overrides PluginSelectorInterface::buildSelectorForm

1 call to PluginSelectorBase::buildSelectorForm()
AdvancedPluginSelectorBase::buildSelectorForm in src/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBase.php
Builds the selector form.
1 method overrides PluginSelectorBase::buildSelectorForm()
AdvancedPluginSelectorBase::buildSelectorForm in src/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBase.php
Builds the selector form.

File

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

Class

PluginSelectorBase
Provides a base plugin selector.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function buildSelectorForm(array $form, FormStateInterface $form_state) {
  $this
    ->validateSelectablePluginType();
  return [];
}