You are here

public function ViewExecutable::initDisplay in Zircon Profile 8

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

Set the display for this view and initialize the display handler.

12 calls to ViewExecutable::initDisplay()
ViewExecutable::access in core/modules/views/src/ViewExecutable.php
Determine if the given user has access to the view. Note that this sets the display handler if it hasn't been.
ViewExecutable::buildTitle in core/modules/views/src/ViewExecutable.php
Force the view to build a title.
ViewExecutable::chooseDisplay in core/modules/views/src/ViewExecutable.php
Get the first display that is accessible to the user.
ViewExecutable::getCacheTags in core/modules/views/src/ViewExecutable.php
Gets the cache tags associated with the executed view.
ViewExecutable::getDisplay in core/modules/views/src/ViewExecutable.php
Gets the current display plugin.

... See full list

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function initDisplay() {
  if (isset($this->current_display)) {
    return TRUE;
  }

  // Initialize the display cache array.
  $this->displayHandlers = new DisplayPluginCollection($this, Views::pluginManager('display'));
  $this->current_display = 'default';
  $this->display_handler = $this->displayHandlers
    ->get('default');
  return TRUE;
}