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

public ViewExecutable::getBaseTables() Creates a list of base tables to be used by the view. This is used primarily for the UI. The display must be already initialized. Return value array An array of base tables to be used by the view. File core/modules/views/src/ViewExecutable.php, line 959 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getBaseTables() { $base_tables = array( $this->storage->get('base_table') => TRUE,

ViewExecutable::getCacheTags

public ViewExecutable::getCacheTags() Gets the cache tags associated with the executed view. Note: The cache plugin controls the used tags, so you can override it, if needed. Return value string[] An array of cache tags. File core/modules/views/src/ViewExecutable.php, line 1549 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getCacheTags() { $this->initDisplay(); /** @var \Drupal\views\Plugin\views\cache\CachePluginBase $cache */

ViewExecutable::getCurrentPage

public ViewExecutable::getCurrentPage() Gets the current page from the pager. Return value int The current page. File core/modules/views/src/ViewExecutable.php, line 531 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getCurrentPage() { // If the pager is already initialized, pass it through to the pager. if (!empty($this->pager)) { return $this->pager->getCurrentPage(); } if (isset($this->current_page)) { ret

ViewExecutable::getDependencies

public ViewExecutable::getDependencies() Gets dependencies for the view. Return value array An array of dependencies grouped by type (module, theme, entity). See also \Drupal\views\Entity\View::calculateDependencies() \Drupal\views\Entity\View::getDependencies() File core/modules/views/src/ViewExecutable.php, line 2465 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getDependencies() { return $this->storage->calculateDependencies

ViewExecutable::getDisplay

public ViewExecutable::getDisplay() Gets the current display plugin. Return value \Drupal\views\Plugin\views\display\DisplayPluginBase The current display plugin. File core/modules/views/src/ViewExecutable.php, line 757 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getDisplay() { if (!isset($this->display_handler)) { $this->initDisplay(); } return $this->display_handler; }

ViewExecutable::getExposedInput

public ViewExecutable::getExposedInput() Figures out what the exposed input for this view is. They will be taken from \Drupal::request()->query or from something previously set on the view. Return value string[] An array containing the exposed input values keyed by the filter and sort name. See also self::setExposedInput() File core/modules/views/src/ViewExecutable.php, line 675 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getExpos

ViewExecutable::getHandler

public ViewExecutable::getHandler($display_id, $type, $id) Gets the configuration of a handler instance on a given display. Parameters string $display_id: The machine name of the display. string $type: The type of handler to retrieve. string $id: The ID of the handler to retrieve. Return value array|null Either the handler instance's configuration, or NULL if the handler is not used on the display. File core/modules/views/src/ViewExecutable.php, line 2272 Class ViewExecutable Represents