class DefaultStyle

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/style/DefaultStyle.php \Drupal\views\Plugin\views\style\DefaultStyle

Unformatted style plugin to render rows.

Row are rendered one after another with no decorations.

Plugin annotation


@ViewsStyle(
  id = "default",
  title = @Translation("Unformatted list"),
  help = @Translation("Displays rows one after another."),
  theme = "views_view_unformatted",
  display_types = {"normal"}
)

Hierarchy

Expanded class hierarchy of DefaultStyle

Related topics

1 file declares its use of DefaultStyle
ViewExecutableTest.php in core/modules/views/tests/src/Kernel/ViewExecutableTest.php

File

core/modules/views/src/Plugin/views/style/DefaultStyle.php, line 20

Namespace

Drupal\views\Plugin\views\style
View source
class DefaultStyle extends StylePluginBase {
  
  /**
   * {@inheritdoc}
   */
  protected $usesRowPlugin = TRUE;
  
  /**
   * Does the style plugin support custom css class for the rows.
   *
   * @var bool
   */
  protected $usesRowClass = TRUE;

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.