class NodeRow

Same name and namespace in other branches
  1. 11.x core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
  2. 10 core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
  3. 8.9.x core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow

Plugin which performs a node_view on the resulting object.

Most of the code on this object is in the theme function.

Plugin annotation


@ViewsRow(
  id = "entity:node",
)

Hierarchy

Expanded class hierarchy of NodeRow

Related topics

File

core/modules/node/src/Plugin/views/row/NodeRow.php, line 18

Namespace

Drupal\node\Plugin\views\row
View source
class NodeRow extends EntityRow {
  
  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['view_mode']['default'] = 'teaser';
    return $options;
  }

}

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