protected function NodeRow::defineOptions

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

Overrides EntityRow::defineOptions

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php, line 37
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

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['view_mode']['default'] = 'teaser';
  $options['links'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  $options['comments'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  return $options;
}