You are here

protected function Comment::display_options_row in Views (for Drupal 7) 8.3

Set the row style and row style plugins to the display_options.

2 calls to Comment::display_options_row()
Comment::block_display_options in lib/Views/comment/Plugin/views/wizard/Comment.php
Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options().
Comment::page_display_options in lib/Views/comment/Plugin/views/wizard/Comment.php
Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options().

File

lib/Views/comment/Plugin/views/wizard/Comment.php, line 127
Definition of Views\node\Plugin\views\wizard\Comment.

Class

Comment
Tests creating comment views with the wizard.

Namespace

Views\comment\Plugin\views\wizard

Code

protected function display_options_row(&$display_options, $row_plugin, $row_options) {
  switch ($row_plugin) {
    case 'comment':
      $display_options['row']['type'] = 'comment';
      $display_options['row']['options']['links'] = !empty($row_options['links']);
      break;
  }
}