class NodeRow in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
- 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
- class \Drupal\views\Plugin\views\row\EntityRow extends \Drupal\views\Plugin\views\row\RowPluginBase uses EntityTranslationRenderTrait
- class \Drupal\node\Plugin\views\row\NodeRow
Expanded class hierarchy of NodeRow
File
- core/
modules/ node/ src/ Plugin/ views/ row/ NodeRow.php, line 18
Namespace
Drupal\node\Plugin\views\rowView source
class NodeRow extends EntityRow {
/**
* {@inheritdoc}
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['view_mode']['default'] = 'teaser';
return $options;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityRow:: |
public | property | The table the entity is using for storage. | |
EntityRow:: |
protected | property | The entity display repository. | |
EntityRow:: |
protected | property | The entity repository service. | |
EntityRow:: |
protected | property | Contains the entity type of this row plugin instance. | |
EntityRow:: |
protected | property | Stores the entity type ID of the result entities. | |
EntityRow:: |
protected | property | The entity type manager. | |
EntityRow:: |
protected | property | The language manager. | |
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | ||
EntityRow:: |
public static | function | ||
EntityRow:: |
protected | function | ||
EntityRow:: |
public | function |
Returns the entity type identifier. Overrides EntityTranslationRenderTrait:: |
|
EntityRow:: |
protected | function | ||
EntityRow:: |
protected | function |
Returns the language manager. Overrides EntityTranslationRenderTrait:: |
|
EntityRow:: |
protected | function |
Returns the top object of a view. Overrides EntityTranslationRenderTrait:: |
|
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | ||
EntityRow:: |
public | function | Constructs a new EntityRow object. | |
EntityTranslationRenderTrait:: |
protected | property | The renderer to be used to render the entity row. | |
EntityTranslationRenderTrait:: |
public | function | Returns the entity translation matching the configured row language. | |
EntityTranslationRenderTrait:: |
protected | function | Returns the current renderer. | |
NodeRow:: |
protected | function |
Overrides EntityRow:: |