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::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::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::buildRenderable

public ViewExecutable::buildRenderable($display_id = NULL, $args = array(), $cache = TRUE) Builds the render array outline for the given display. This render array has a #pre_render callback which will call ::executeDisplay in order to actually execute the view and then build the final render array structure. Parameters string $display_id: The display ID. array $args: An array of arguments passed along to the view. bool $cache: (optional) Should the result be render cached. Return value array

ViewExecutable::buildThemeFunctions

public ViewExecutable::buildThemeFunctions($hook) Provides a full array of possible theme functions to try for a given hook. Parameters string $hook: The hook to use. This is the base theme/template name. Return value array An array of theme hook suggestions. File core/modules/views/src/ViewExecutable.php, line 2408 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function buildThemeFunctions($hook) { $themes = array(); $display = isset($this-

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::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::createDuplicate

public ViewExecutable::createDuplicate() Creates a duplicate ViewExecutable object. Makes a copy of this view that has been sanitized of handlers, any runtime data, ID, and UUID. File core/modules/views/src/ViewExecutable.php, line 2043 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function createDuplicate() { return $this->storage->createDuplicate()->getExecutable(); }

ViewExecutable::destroy

public ViewExecutable::destroy() Unsets references so that a $view object may be properly garbage collected. File core/modules/views/src/ViewExecutable.php, line 2050 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function destroy() { foreach ($this::getHandlerTypes() as $type => $info) { if (isset($this->$type)) { foreach ($this->{$type} as $handler) { $handler->destroy(); } } } if (isset($this->s

ViewExecutable::execute

public ViewExecutable::execute($display_id = NULL) Executes the view's query. Parameters string $display_id: The machine name of the display, which should be executed. Return value bool TRUE if the view execution was successful, FALSE otherwise. For example, an argument could stop the process. File core/modules/views/src/ViewExecutable.php, line 1376 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function execute($display_id = NULL) { if (empt