You are here

public function SpamspanSettingsFormTrait::processSettingsForm in SpamSpan filter 8

Same name and namespace in other branches
  1. 8.2 src/SpamspanSettingsFormTrait.php \Drupal\spamspan\SpamspanSettingsFormTrait::processSettingsForm()

Attach our validation.

File

src/SpamspanSettingsFormTrait.php, line 117

Class

SpamspanSettingsFormTrait
Provides a common Settings form for Spamspan plugins.

Namespace

Drupal\spamspan

Code

public function processSettingsForm(&$element, FormStateInterface $form_state, &$complete_form) {
  $complete_form['#validate'][] = [
    $this,
    'validateSettingsForm',
  ];
  return $element;
}