ViewExecutable::buildTitle

public ViewExecutable::buildTitle() Forces the view to build a title. File core/modules/views/src/ViewExecutable.php, line 1851 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function buildTitle() { $this->initDisplay(); if (empty($this->built)) { $this->initQuery(); } $this->initHandlers(); $this->_buildArguments(); }

ViewExecutable::attachDisplays

public ViewExecutable::attachDisplays() Runs attachment displays for the view. File core/modules/views/src/ViewExecutable.php, line 1699 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function attachDisplays() { if (!empty($this->is_attachment)) { return; } if (!$this->display_handler->acceptAttachments()) { return; } $this->is_attachment = TRUE; // Find out which other displays attach to the current one. foreac

ViewExecutable::$user

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/views/src/ViewExecutable.php, line 408 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $user;

ViewExecutable::addHandler

public ViewExecutable::addHandler($display_id, $type, $table, $field, $options = array(), $id = NULL) Adds an instance of a handler to the view. Items may be fields, filters, sort criteria, or arguments. Parameters string $display_id: The machine name of the display. string $type: The type of handler being added. string $table: The name of the table this handler is from. string $field: The name of the field this handler is from. array $options: (optional) Extra options for this instance. Defau

ViewExecutable::ajaxEnabled

public ViewExecutable::ajaxEnabled() Determines whether or not AJAX should be used. Return value bool TRUE if AJAX is enabled, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 649 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function ajaxEnabled() { return $this->ajaxEnabled; }

ViewExecutable::addCacheContext

public ViewExecutable::addCacheContext($cache_context) Expands the list of used cache contexts for the view. Parameters string $cache_context: The additional cache context. Return value $this File core/modules/views/src/ViewExecutable.php, line 497 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function addCacheContext($cache_context) { $this->element['#cache']['contexts'][] = $cache_context; return $this; }

ViewExecutable::access

public ViewExecutable::access($displays = NULL, $account = NULL) Determines if the given user has access to the view. Note that this sets the display handler if it hasn't been set. Parameters string $displays: The machine name of the display. \Drupal\Core\Session\AccountInterface $account: The user object. Return value bool TRUE if the user has access to the view, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 1734 Class ViewExecutable Represents a view as a whole.

ViewExecutable::$viewsData

The views data. Type: \Drupal\views\ViewsData File core/modules/views/src/ViewExecutable.php, line 422 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $viewsData;

ViewExecutable::$sort

Stores the sort handlers which are initialized on this view. Type: \Drupal\views\Plugin\views\sort\SortPluginBase[] File core/modules/views/src/ViewExecutable.php, line 276 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $sort;

ViewExecutable::$storage

The config entity in which the view is stored. Type: \Drupal\views\Entity\View File core/modules/views/src/ViewExecutable.php, line 30 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $storage;