You are here

protected function NodeRevision::rowStyleOptions in Zircon Profile 8.0

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()

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 51
Contains \Drupal\node\Plugin\views\wizard\NodeRevision.

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