You are here

protected function NodeRevision::rowStyleOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
  2. 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\wizard

Code

protected function rowStyleOptions() {
  $options = parent::rowStyleOptions();
  unset($options['teasers']);
  unset($options['full_posts']);
  return $options;
}