ViewExecutable::getBaseEntityType

public ViewExecutable::getBaseEntityType() Returns the entity type of the base table, if available. Return value \Drupal\Core\Entity\EntityType|false The entity type of the base table, or FALSE if none exists. File core/modules/views/src/ViewExecutable.php, line 977 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getBaseEntityType() { if (!isset($this->baseEntityType)) { $view_base_table = $this->storage->get('base_table');

ViewExecutable::generateHandlerId

public static ViewExecutable::generateHandlerId($requested_id, $existing_items) Generates a unique ID for an handler instance. These handler instances are typically fields, filters, sort criteria, or arguments. Parameters string $requested_id: The requested ID for the handler instance. array $existing_items: An array of existing handler instances, keyed by their IDs. Return value string A unique ID. This will be equal to $requested_id if no handler instance with that ID already exists. Otherw

ViewExecutable::executeDisplay

public ViewExecutable::executeDisplay($display_id = NULL, $args = array()) Executes the given display, with the given arguments. To be called externally by whatever mechanism invokes the view, such as a page callback, hook_block, etc. This function should NOT be used by anything external as this returns data in the format specified by the display. It can also have other side effects that are only intended for the 'proper' use of the display, such as setting page titles. If you simply want to vi

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

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