You are here

protected function Node::rowStyleOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/Plugin/views/wizard/Node.php \Drupal\node\Plugin\views\wizard\Node::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/Node.php, line 111

Class

Node
Tests creating node views with the wizard.

Namespace

Drupal\node\Plugin\views\wizard

Code

protected function rowStyleOptions() {
  $options = [];
  $options['teasers'] = $this
    ->t('teasers');
  $options['full_posts'] = $this
    ->t('full posts');
  $options['titles'] = $this
    ->t('titles');
  $options['titles_linked'] = $this
    ->t('titles (linked)');
  $options['fields'] = $this
    ->t('fields');
  return $options;
}