You are here

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

Basic options for all sort criteria

Overrides HandlerBase::buildOptionsForm

3 calls to SortPluginBase::buildOptionsForm()
Date::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/Date.php
Basic options for all sort criteria
MenuHierarchy::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php
Basic options for all sort criteria
Random::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/Random.php
Basic options for all sort criteria
4 methods override SortPluginBase::buildOptionsForm()
Broken::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/Broken.php
Basic options for all sort criteria
Date::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/Date.php
Basic options for all sort criteria
MenuHierarchy::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php
Basic options for all sort criteria
Random::buildOptionsForm in lib/Drupal/views/Plugin/views/sort/Random.php
Basic options for all sort criteria

File

lib/Drupal/views/Plugin/views/sort/SortPluginBase.php, line 76
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 buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  if ($this
    ->canExpose()) {
    $this
      ->showExposeButton($form, $form_state);
  }
  $form['op_val_start'] = array(
    '#value' => '<div class="clearfix">',
  );
  $this
    ->show_sort_form($form, $form_state);
  $form['op_val_end'] = array(
    '#value' => '</div>',
  );
  if ($this
    ->canExpose()) {
    $this
      ->showExposeForm($form, $form_state);
  }
}