You are here

class NodeRow in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
  2. 9 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

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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityRow::$base_table public property The table the entity is using for storage.
EntityRow::$entityDisplayRepository protected property The entity display repository.
EntityRow::$entityRepository protected property The entity repository service.
EntityRow::$entityType protected property Contains the entity type of this row plugin instance.
EntityRow::$entityTypeId protected property Stores the entity type ID of the result entities.
EntityRow::$entityTypeManager protected property The entity type manager.
EntityRow::$languageManager protected property The language manager.
EntityRow::buildOptionsForm public function
EntityRow::calculateDependencies public function
EntityRow::create public static function
EntityRow::getEntityRepository protected function
EntityRow::getEntityTypeId public function Returns the entity type identifier. Overrides EntityTranslationRenderTrait::getEntityTypeId
EntityRow::getEntityTypeManager protected function
EntityRow::getLanguageManager protected function Returns the language manager. Overrides EntityTranslationRenderTrait::getLanguageManager
EntityRow::getView protected function Returns the top object of a view. Overrides EntityTranslationRenderTrait::getView
EntityRow::init public function
EntityRow::preRender public function
EntityRow::query public function
EntityRow::render public function
EntityRow::summaryTitle public function
EntityRow::__construct public function Constructs a new EntityRow object.
EntityTranslationRenderTrait::$entityTranslationRenderer protected property The renderer to be used to render the entity row.
EntityTranslationRenderTrait::getEntityTranslation public function Returns the entity translation matching the configured row language.
EntityTranslationRenderTrait::getEntityTranslationRenderer protected function Returns the current renderer.
NodeRow::defineOptions protected function Overrides EntityRow::defineOptions