You are here

public function AdvancedPluginSelectorBase::buildMultipleAvailablePlugins in Plugin 8.2

Builds the form elements for multiple plugins.

File

src/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBase.php, line 279

Class

AdvancedPluginSelectorBase
Provides a default base for most plugin selectors.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function buildMultipleAvailablePlugins(array $element, FormStateInterface $form_state) {
  $plugins = $element['#available_plugins'];
  $element['select'] = $this
    ->buildSelector($element, $form_state, $plugins);
  $element['plugin_form'] = $this
    ->buildPluginForm($form_state);
  return $element;
}