ViewExecutable::render

public ViewExecutable::render($display_id = NULL) Renders this view for a certain display. Note: You should better use just the preview function if you want to render a view. Parameters string $display_id: The machine name of the display, which should be rendered. Return value array|null A renderable array containing the view output or NULL if the build process failed. File core/modules/views/src/ViewExecutable.php, line 1440 Class ViewExecutable Represents a view as a whole. Namespace

ViewExecutable::setAjaxEnabled

public ViewExecutable::setAjaxEnabled($ajax_enabled) Sets whether or not AJAX should be used. If AJAX is used, paging, table sorting, and exposed filters will be fetched via an AJAX call rather than a page refresh. Parameters bool $ajax_enabled: TRUE if AJAX should be used, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 639 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setAjaxEnabled($ajax_enabled) { $this->a

ViewExecutable::save

public ViewExecutable::save() Saves the view. File core/modules/views/src/ViewExecutable.php, line 473 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function save() { $this->storage->save(); }

ViewExecutable::removeHandler

public ViewExecutable::removeHandler($display_id, $type, $id) Removes configuration for a handler instance on a given display. Parameters string $display_id: The machine name of the display. string $type: The type of handler being removed. string $id: The ID of the handler being removed. File core/modules/views/src/ViewExecutable.php, line 2324 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function removeHandler($display_id, $type, $id) { // G

ViewExecutable::renderPager

public ViewExecutable::renderPager($exposed_input) Renders the pager, if necessary. Parameters string[] $exposed_input: The input values from the exposed forms and sorts of the view. Return value array|string The render array of the pager if it's set, blank string otherwise. File core/modules/views/src/ViewExecutable.php, line 943 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function renderPager($exposed_input) { if (!empty($this->pager)

ViewExecutable::preview

public ViewExecutable::preview($display_id = NULL, $args = array()) Previews the given display, with the given arguments. To be called externally, probably by an AJAX handler of some flavor. Can also be called when views are embedded, as this guarantees normalized output. This function does not do any access checks on the view. It is the responsibility of the caller to check $view->access() or implement other access logic. To render the view normally with access checks, use views_embed_view(

ViewExecutable::postExecute

public ViewExecutable::postExecute() Unsets the current view, mostly. File core/modules/views/src/ViewExecutable.php, line 1685 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function postExecute() { // unset current view so we can be properly destructed later on. // Return the previous value in case we're an attachment. if ($this->old_view) { $old_view = array_pop($this->old_view); } views_set_current_view(isset($old_view) ?

ViewExecutable::mergeDefaults

public ViewExecutable::mergeDefaults() Merges all plugin default values for each display. File core/modules/views/src/ViewExecutable.php, line 2391 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function mergeDefaults() { $this->initDisplay(); // Initialize displays and merge all plugin defaults. foreach ($this->displayHandlers as $display) { $display->mergeDefaults(); } }

ViewExecutable::newDisplay

public ViewExecutable::newDisplay($plugin_id = 'page', $title = NULL, $id = NULL) Creates a new display and a display handler instance for it. Parameters string $plugin_id: (optional) The plugin type from the Views plugin annotation. Defaults to 'page'. string $title: (optional) The title of the display. Defaults to NULL. string $id: (optional) The ID to use, e.g., 'default', 'page_1', 'block_2'. Defaults to NULL. Return value \Drupal\views\Plugin\views\display\DisplayPluginBase A new display

ViewExecutable::preExecute

public ViewExecutable::preExecute($args = array()) Runs attachments and lets the display do what it needs to before running. Parameters array $args: An array of arguments from the URL that can be used by the view. File core/modules/views/src/ViewExecutable.php, line 1661 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function preExecute($args = array()) { $this->old_view[] = views_get_current_view(); views_set_current_view($this); $displ