Version 1
[yaffs-website] / web / core / modules / node / src / Plugin / views / row / NodeRow.php
1 <?php
2
3 namespace Drupal\node\Plugin\views\row;
4
5 use Drupal\views\Plugin\views\row\EntityRow;
6
7 /**
8  * Plugin which performs a node_view on the resulting object.
9  *
10  * Most of the code on this object is in the theme function.
11  *
12  * @ingroup views_row_plugins
13  *
14  * @ViewsRow(
15  *   id = "entity:node",
16  * )
17  */
18 class NodeRow extends EntityRow {
19
20   /**
21    * {@inheritdoc}
22    */
23   protected function defineOptions() {
24     $options = parent::defineOptions();
25
26     $options['view_mode']['default'] = 'teaser';
27
28     return $options;
29   }
30
31 }