You are here

public function SortPluginBase::validateOptionsForm in Views (for Drupal 7) 8.3

Simple validate handler

Overrides HandlerBase::validateOptionsForm

File

lib/Drupal/views/Plugin/views/sort/SortPluginBase.php, line 141
Definition of Drupal\views\Plugin\views\sort\SortPluginBase.

Class

SortPluginBase
Base sort handler that has no options and performs a simple sort.

Namespace

Drupal\views\Plugin\views\sort

Code

public function validateOptionsForm(&$form, &$form_state) {
  $this
    ->sort_validate($form, $form_state);
  if (!empty($this->options['exposed'])) {
    $this
      ->validateExposeForm($form, $form_state);
  }
}