public function NodeRow::buildOptionsForm

Overrides Drupal\system\Plugin\views\row\Entity::buildOptionsForm().

Overrides EntityRow::buildOptionsForm

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php, line 51
Definition of Drupal\node\Plugin\views\row\NodeRow.

Class

NodeRow
Plugin which performs a node_view on the resulting object.

Namespace

Drupal\node\Plugin\views\row

Code

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'],
  );
}