ViewExecutable::getStyle

public ViewExecutable::getStyle() Gets the current style plugin. Return value \Drupal\views\Plugin\views\style\StylePluginBase The current style plugin. File core/modules/views/src/ViewExecutable.php, line 850 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getStyle() { if (!isset($this->style_plugin)) { $this->initStyle(); } return $this->style_plugin; }

ViewExecutable::getTitle

public ViewExecutable::getTitle() Gets the view's current title. This can change depending upon how it was built. Return value string|false The view title, FALSE if the display is not set. File core/modules/views/src/ViewExecutable.php, line 1813 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getTitle() { if (empty($this->display_handler)) { if (!$this->setDisplay('default')) { return FALSE; } } // During build

ViewExecutable::getUrl

public ViewExecutable::getUrl($args = NULL, $display_id = NULL) Gets the URL for the current view. This URL will be adjusted for arguments. Parameters array $args: (optional) Passed in arguments. string $display_id: (optional) Specify the display ID to link to, fallback to the current ID. Return value \Drupal\Core\Url The URL of the current view. Throws \InvalidArgumentException Thrown when the current view doesn't have a route available. File core/modules/views/src/ViewExecutable.php, line

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

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::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::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::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::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::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; } }