You are here

public function MobileDetectPlatform::submitConfigurationForm in Mobile Detect 8.2

*

Overrides ConditionPluginBase::submitConfigurationForm

File

src/Plugin/Condition/MobileDetectPlatform.php, line 77

Class

MobileDetectPlatform
Provides the 'Device platform' condition.

Namespace

Drupal\mobile_detect\Plugin\Condition

Code

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