You are here

public function Term::submitConfigurationForm in Term condition 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Condition/Term.php \Drupal\term_condition\Plugin\Condition\Term::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/Term.php, line 117
Contains \Drupal\term_condition\Plugin\Condition\Term.

Class

Term
Provides a 'Term' condition to enable a condition based in module selected status.

Namespace

Drupal\term_condition\Plugin\Condition

Code

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