ViewExecutable::chooseDisplay

public ViewExecutable::chooseDisplay($displays) Gets the first display that is accessible to the user. Parameters array|string $displays: Either a single display id or an array of display ids. Return value string The first accessible display id, at least default. File core/modules/views/src/ViewExecutable.php, line 735 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function chooseDisplay($displays) { if (!is_array($displays)) { return $dis

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

Should the admin links be shown on the rendered view. Type: bool File core/modules/views/src/ViewExecutable.php, line 415 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $showAdminLinks;