You are here

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

Basic options for all sort criteria

Overrides SortPluginBase::buildOptionsForm

File

lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php, line 34
Definition of Drupal\views\Plugin\views\sort\MenuHierarchy.

Class

MenuHierarchy
Sort in menu hierarchy order.

Namespace

Drupal\views\Plugin\views\sort

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['sort_within_level'] = array(
    '#type' => 'checkbox',
    '#title' => t('Sort within each hierarchy level'),
    '#description' => t('Enable this to sort the items within each level of the hierarchy by weight and title.  Warning: this may produce a slow query.'),
    '#default_value' => $this->options['sort_within_level'],
  );
}