You are here

public function PluginSelectorInterface::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().

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

File

src/Plugin/Plugin/PluginSelector/PluginSelectorInterface.php, line 197

Class

PluginSelectorInterface
Defines a plugin to select and configure another plugin.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function buildSelectorForm(array $form, FormStateInterface $form_state);