public function AdvancedPluginSelectorBase::submitSelectorForm in Plugin 8.2
Submits the selector form.
Parameters
mixed[] $form: The selector form as built by static::buildSelectorForm().
\Drupal\Core\Form\FormStateInterface $form_state: The form state for $form. This often is not the complete (global) form state.
Overrides PluginSelectorInterface::submitSelectorForm
File
- src/
Plugin/ Plugin/ PluginSelector/ AdvancedPluginSelectorBase.php, line 177
Class
- AdvancedPluginSelectorBase
- Provides a default base for most plugin selectors.
Namespace
Drupal\plugin\Plugin\Plugin\PluginSelectorCode
public function submitSelectorForm(array &$form, FormStateInterface $form_state) {
$selectedPlugin = $this
->getSelectedPlugin();
if ($this
->getCollectPluginConfiguration() && $selectedPlugin instanceof PluginFormInterface) {
$selectedPlugin
->submitConfigurationForm($form['container']['plugin_form'], $form_state);
}
}