You are here

public function ViewExecutable::getStyle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getStyle()

Gets the current style plugin.

Return value

\Drupal\views\Plugin\views\style\StylePluginBase The current style plugin.

File

core/modules/views/src/ViewExecutable.php, line 860

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function getStyle() {
  if (!isset($this->style_plugin)) {
    $this
      ->initStyle();
  }
  return $this->style_plugin;
}