ViewExecutable::initStyle

public ViewExecutable::initStyle() Finds and initializes the style plugin. Note that arguments may have changed which style plugin we use, so check the view object first, then ask the display handler. Return value bool TRUE if the style plugin was or could be initialized, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 867 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initStyle() { if (isset($this->style_plugi

ViewExecutable::initQuery

public ViewExecutable::initQuery() Initializes the query object for the view. Return value true Always returns TRUE. File core/modules/views/src/ViewExecutable.php, line 1153 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initQuery() { if (!empty($this->query)) { $class = get_class($this->query); if ($class && $class != 'stdClass') { // return if query is already initialized. return TRUE; } }

ViewExecutable::initPager

public ViewExecutable::initPager() Initializes the pager. Like style initialization, pager initialization is held until late to allow for overrides. File core/modules/views/src/ViewExecutable.php, line 914 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initPager() { if (!isset($this->pager)) { $this->pager = $this->display_handler->getPlugin('pager'); if ($this->pager->usePager()) { $this->pager->s

ViewExecutable::initHandlers

public ViewExecutable::initHandlers() Acquires and attaches all of the handlers. File core/modules/views/src/ViewExecutable.php, line 884 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initHandlers() { $this->initDisplay(); if (empty($this->inited)) { foreach ($this::getHandlerTypes() as $key => $info) { $this->_initHandler($key, $info); } $this->inited = TRUE; } }

ViewExecutable::initDisplay

public ViewExecutable::initDisplay() Sets the display for this view and initializes the display handler. Return value true Always returns TRUE. File core/modules/views/src/ViewExecutable.php, line 712 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::

ViewExecutable::id

public ViewExecutable::id() Returns the identifier. Return value string|null The entity identifier, or NULL if the object does not yet have an identifier. File core/modules/views/src/ViewExecutable.php, line 466 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function id() { return $this->storage->id(); }

ViewExecutable::hasUrl

public ViewExecutable::hasUrl($args = NULL, $display_id = NULL) Determines whether you can link to the view or a particular display. Some displays (e.g. block displays) do not have their own route, but may optionally provide a link to another display that does have a route. Parameters array $args: (optional) The arguments. string $display_id: (optional) The display ID. The current display will be used by default. Return value bool TRUE if the current display has a valid route available, FALSE

ViewExecutable::hasFormElements

public ViewExecutable::hasFormElements() Determines if this view has form elements. Return value bool TRUE if this view contains handlers with views form implementations, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 2439 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function hasFormElements() { foreach ($this->field as $field) { if (property_exists($field, 'views_form_callback') || method_exists($field, 'viewsFo

ViewExecutable::getUser

public ViewExecutable::getUser() Gets the current user. Views plugins can receive the current user in order to not need dependency injection. Return value \Drupal\Core\Session\AccountInterface The current user. File core/modules/views/src/ViewExecutable.php, line 2033 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getUser() { return $this->user; }

ViewExecutable::getUrlInfo

public ViewExecutable::getUrlInfo($display_id = '') Gets the Url object associated with the display handler. Parameters string $display_id: (optional) The display ID (used only to detail an exception). Return value \Drupal\Core\Url The display handlers URL object. Throws \InvalidArgumentException Thrown when the display plugin does not have a URL to return. File core/modules/views/src/ViewExecutable.php, line 1997 Class ViewExecutable Represents a view as a whole. Namespace Drupal\vi