protected function NodeRevision::rowStyleOptions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
- 9 core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::rowStyleOptions().
Node revisions do not support full posts or teasers, so remove them.
Overrides WizardPluginBase::rowStyleOptions
File
- core/
modules/ node/ src/ Plugin/ views/ wizard/ NodeRevision.php, line 35
Class
- NodeRevision
- Tests creating node revision views with the wizard.
Namespace
Drupal\node\Plugin\views\wizardCode
protected function rowStyleOptions() {
$options = parent::rowStyleOptions();
unset($options['teasers']);
unset($options['full_posts']);
return $options;
}