class NodeRow
Same name and namespace in other branches
- 11.x core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
- 10 core/modules/node/src/Plugin/views/row/NodeRow.php \Drupal\node\Plugin\views\row\NodeRow
- 8.9.x 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\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\views\Plugin\views\PluginBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\views\Plugin\views\row\RowPluginBase extends \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\row\EntityRow uses \Drupal\views\Entity\Render\EntityTranslationRenderTrait extends \Drupal\views\Plugin\views\row\RowPluginBase
- class \Drupal\node\Plugin\views\row\NodeRow extends \Drupal\views\Plugin\views\row\EntityRow
- class \Drupal\views\Plugin\views\row\EntityRow uses \Drupal\views\Entity\Render\EntityTranslationRenderTrait extends \Drupal\views\Plugin\views\row\RowPluginBase
- class \Drupal\views\Plugin\views\row\RowPluginBase extends \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\PluginBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of NodeRow
Related topics
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;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.