You are here

public function ModuleEnabled::submitConfigurationForm in Varbase Total Control Dashboard 8.5

Same name and namespace in other branches
  1. 8.6 src/Plugin/Condition/ModuleEnabled.php \Drupal\varbase_total_control\Plugin\Condition\ModuleEnabled::submitConfigurationForm()
  2. 8 src/Plugin/Condition/ModuleEnabled.php \Drupal\varbase_total_control\Plugin\Condition\ModuleEnabled::submitConfigurationForm()
  3. 9.0.x src/Plugin/Condition/ModuleEnabled.php \Drupal\varbase_total_control\Plugin\Condition\ModuleEnabled::submitConfigurationForm()

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 ConditionPluginBase::submitConfigurationForm

File

src/Plugin/Condition/ModuleEnabled.php, line 43

Class

ModuleEnabled
Provides a 'Module' condition.

Namespace

Drupal\varbase_total_control\Plugin\Condition

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['module'] = $form_state
    ->getValue('module');
  parent::submitConfigurationForm($form, $form_state);
}