You are here

protected function EntityRow::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/row/EntityRow.php \Drupal\views\Plugin\views\row\EntityRow::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/row/EntityRow.php \Drupal\views\Plugin\views\row\EntityRow::defineOptions()
2 calls to EntityRow::defineOptions()
NodeRow::defineOptions in core/modules/node/src/Plugin/views/row/NodeRow.php
UserRow::defineOptions in core/modules/user/src/Plugin/views/row/UserRow.php
2 methods override EntityRow::defineOptions()
NodeRow::defineOptions in core/modules/node/src/Plugin/views/row/NodeRow.php
UserRow::defineOptions in core/modules/user/src/Plugin/views/row/UserRow.php

File

core/modules/views/src/Plugin/views/row/EntityRow.php, line 167

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\views\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['view_mode'] = [
    'default' => 'default',
  ];
  return $options;
}