public function LanguageSelectionPageConditionPath::submitConfigurationForm in Language Selection Page 8.2
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 LanguageSelectionPageConditionBase::submitConfigurationForm
File
- src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionPath.php, line 201
Class
- LanguageSelectionPageConditionPath
- Class for the Path condition plugin.
Namespace
Drupal\language_selection_page\Plugin\LanguageSelectionPageConditionCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// Flush only if there is a change in the path.
if ($this->configuration[$this
->getPluginId()] !== $form_state
->getValue($this
->getPluginId())) {
$this->routeBuilder
->setRebuildNeeded();
}
parent::submitConfigurationForm($form, $form_state);
}