
| Current Path : /var/www/html/rocksensor/web/core/modules/node/src/Plugin/views/row/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/modules/node/src/Plugin/views/row/NodeRow.php |
<?php
namespace Drupal\node\Plugin\views\row;
use Drupal\views\Attribute\ViewsRow;
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("entity:node")]
class NodeRow extends EntityRow {
/**
* {@inheritdoc}
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['view_mode']['default'] = 'teaser';
return $options;
}
}