public function View::buildOptionsForm in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Views/node/Plugin/views/row/View.php \Views\node\Plugin\views\row\View::buildOptionsForm()
- 8.3 lib/Views/comment/Plugin/views/row/View.php \Views\comment\Plugin\views\row\View::buildOptionsForm()
- 8.3 lib/Views/search/Plugin/views/row/View.php \Views\search\Plugin\views\row\View::buildOptionsForm()
- 8.3 lib/Drupal/views/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::buildOptionsForm()
Overrides Views\system\Plugin\views\row\Entity::buildOptionsForm().
Overrides Entity::buildOptionsForm
File
- lib/
Views/ node/ Plugin/ views/ row/ View.php, line 51 - Definition of Views\node\Plugin\views\row\View.
Class
- View
- Plugin which performs a node_view on the resulting object.
Namespace
Views\node\Plugin\views\rowCode
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
$form['links'] = array(
'#type' => 'checkbox',
'#title' => t('Display links'),
'#default_value' => $this->options['links'],
);
$form['comments'] = array(
'#type' => 'checkbox',
'#title' => t('Display comments'),
'#default_value' => $this->options['comments'],
);
}