public function PluginFormTrait::submitConfigurationForm in Search API 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.
See also
\Drupal\Core\Plugin\PluginFormInterface::submitConfigurationForm()
1 call to PluginFormTrait::submitConfigurationForm()
- Stopwords::submitConfigurationForm in src/
Plugin/ search_api/ processor/ Stopwords.php - Form submission handler.
7 methods override PluginFormTrait::submitConfigurationForm()
- ContentEntity::submitConfigurationForm in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Form submission handler.
- Highlight::submitConfigurationForm in src/
Plugin/ search_api/ processor/ Highlight.php - Form submission handler.
- IgnoreCharacters::submitConfigurationForm in src/
Plugin/ search_api/ processor/ IgnoreCharacters.php - Form submission handler.
- NumberFieldBoost::submitConfigurationForm in src/
Plugin/ search_api/ processor/ NumberFieldBoost.php - Form submission handler.
- RoleFilter::submitConfigurationForm in src/
Plugin/ search_api/ processor/ RoleFilter.php - Form submission handler.
File
- src/
Plugin/ PluginFormTrait.php, line 41
Class
- PluginFormTrait
- Provides default implementations for plugin configuration forms.
Namespace
Drupal\search_api\PluginCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// @todo Clean this up once we depend on Drupal 9.0+.
if ($this instanceof ConfigurableInterface || $this instanceof DrupalConfigurablePluginInterface) {
$this
->setConfiguration($form_state
->getValues());
}
}