function Random::buildOptionsForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/sort/Random.php \Drupal\views\Plugin\views\sort\Random::buildOptionsForm()
  2. 8.9.x core/modules/views/src/Plugin/views/sort/Random.php \Drupal\views\Plugin\views\sort\Random::buildOptionsForm()
  3. 10 core/modules/views/src/Plugin/views/sort/Random.php \Drupal\views\Plugin\views\sort\Random::buildOptionsForm()

Overrides SortPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/sort/Random.php, line 29

Class

Random
Handle a random sort.

Namespace

Drupal\views\Plugin\views\sort

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
    $form['order']['#access'] = FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.