ViewExecutable::build

public ViewExecutable::build($display_id = NULL) Builds the query for the view. Parameters string $display_id: The display ID of the view. Return value bool|null TRUE if the view build process was successful, FALSE if setting the display fails or NULL if the view has been built already. File core/modules/views/src/ViewExecutable.php, line 1183 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function build($display_id = NULL) { if (!empty($this-

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::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::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::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::$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::$total_rows

The total number of rows returned from the query. Type: int File core/modules/views/src/ViewExecutable.php, line 108 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $total_rows = NULL;

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;