You are here

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

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/row/View.php \Views\node\Plugin\views\row\View::buildOptionsForm()
  2. 8.3 lib/Views/comment/Plugin/views/row/View.php \Views\comment\Plugin\views\row\View::buildOptionsForm()
  3. 8.3 lib/Views/search/Plugin/views/row/View.php \Views\search\Plugin\views\row\View::buildOptionsForm()
  4. 8.3 lib/Drupal/views/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::buildOptionsForm()

Provide a form for setting options.

Overrides RowPluginBase::buildOptionsForm

File

lib/Views/search/Plugin/views/row/View.php, line 34
Definition of Views\search\Plugin\views\row\View.

Class

View
Plugin which performs a node_view on the resulting object.

Namespace

Views\search\Plugin\views\row

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['score'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display score'),
    '#default_value' => $this->options['score'],
  );
}