Code Coverage  | 
     ||||||||||
Classes and Traits  | 
      Functions and Methods  | 
      Lines  | 
     ||||||||
| Total |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      CRAP |         | 
      0.00%  | 
      0 / 4  | 
     
| NodeRow |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 4  | 
     
| defineOptions |         | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 4  | 
     |||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\node\Plugin\views\row\NodeRow. | |
| */ | |
| namespace Drupal\node\Plugin\views\row; | |
| use Drupal\views\Plugin\views\row\EntityRow; | |
| /** | |
| * Plugin which performs a node_view on the resulting object. | |
| * | |
| * Most of the code on this object is in the theme function. | |
| * | |
| * @ingroup views_row_plugins | |
| * | |
| * @ViewsRow( | |
| * id = "entity:node", | |
| * ) | |
| */ | |
| class NodeRow extends EntityRow { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function defineOptions() { | |
| $options = parent::defineOptions(); | |
| $options['view_mode']['default'] = 'teaser'; | |
| return $options; | |
| } | |
| } |