function NodeRevision::rowStyleOptions
Same name and namespace in other branches
- 9 core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
- 8.9.x core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
- 10 core/modules/node/src/Plugin/views/wizard/NodeRevision.php \Drupal\node\Plugin\views\wizard\NodeRevision::rowStyleOptions()
Retrieves row style plugin names.
Return value
array Returns the plugin names available for the base table of the wizard.
Overrides WizardPluginBase::rowStyleOptions
File
-
core/
modules/ node/ src/ Plugin/ views/ wizard/ NodeRevision.php, line 34
Class
- NodeRevision
- Tests creating node revision views with the wizard.
Namespace
Drupal\node\Plugin\views\wizardCode
protected function rowStyleOptions() {
// Node revisions do not support full posts or teasers, so remove them.
$options = parent::rowStyleOptions();
unset($options['teasers']);
unset($options['full_posts']);
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.