public function FacetSourcePluginBase::submitConfigurationForm in Facets 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 form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
File
- src/
FacetSource/ FacetSourcePluginBase.php, line 150
Class
- FacetSourcePluginBase
- Defines a base class from which other facet sources may extend.
Namespace
Drupal\facets\FacetSourceCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$facet_source_id = $this->facet
->getFacetSourceId();
$field_identifier = $form_state
->getValue('facet_source_configs')[$facet_source_id]['field_identifier'];
$this->facet
->setFieldIdentifier($field_identifier);
}