You are here

public function ViewExecutable::getStyle in Zircon Profile 8

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

Gets the current style plugin.

Return value

\Drupal\views\Plugin\views\style\StylePluginBase

File

core/modules/views/src/ViewExecutable.php, line 819
Contains \Drupal\views\ViewExecutable.

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;
}