public function Highlight::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.
Overrides PluginFormTrait::submitConfigurationForm
See also
\Drupal\Core\Plugin\PluginFormInterface::submitConfigurationForm()
File
- src/
Plugin/ search_api/ processor/ Highlight.php, line 228
Class
- Highlight
- Adds a highlighted excerpt to results and highlights returned fields.
Namespace
Drupal\search_api\Plugin\search_api\processorCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// Sanitize the storage for the "exclude_fields" setting.
$excluded =& $form_state
->getValue('exclude_fields');
$excluded = array_keys(array_filter($excluded));
$this
->setConfiguration($form_state
->getValues());
}