Drupal 8  8.0.2
ViewExecutable Class Reference
Inheritance diagram for ViewExecutable:

Public Member Functions

 __construct (ViewEntityInterface $storage, AccountInterface $user, ViewsData $views_data, RouteProviderInterface $route_provider)
 
 id ()
 
 save ()
 
 setArguments (array $args)
 
 addCacheContext ($cache_context)
 
 setCurrentPage ($page)
 
 getCurrentPage ()
 
 getItemsPerPage ()
 
 setItemsPerPage ($items_per_page)
 
 getOffset ()
 
 setOffset ($offset)
 
 usePager ()
 
 setAjaxEnabled ($ajax_enabled)
 
 ajaxEnabled ()
 
 setExposedInput ($filters)
 
 getExposedInput ()
 
 initDisplay ()
 
 chooseDisplay ($displays)
 
 getDisplay ()
 
 setDisplay ($display_id=NULL)
 
 newDisplay ($plugin_id= 'page', $title=NULL, $id=NULL)
 
 getStyle ()
 
 initStyle ()
 
 initHandlers ()
 
 getPager ()
 
 initPager ()
 
 renderPager ($exposed_input)
 
 getBaseTables ()
 
 getQuery ()
 
 initQuery ()
 
 build ($display_id=NULL)
 
 _build ($key)
 
 execute ($display_id=NULL)
 
 buildRenderable ($display_id=NULL, $args=array(), $cache=TRUE)
 
 executeDisplay ($display_id=NULL, $args=array())
 
 preview ($display_id=NULL, $args=array())
 
 preExecute ($args=array())
 
 postExecute ()
 
 attachDisplays ()
 
 access ($displays=NULL, $account=NULL)
 
 setResponse (Response $response)
 
 getResponse ()
 
 setRequest (Request $request)
 
 getRequest ()
 
 getTitle ()
 
 setTitle ($title)
 
 buildTitle ()
 
 hasUrl ($args=NULL, $display_id=NULL)
 
 getUrlInfo ($display_id= '')
 
 getPath ()
 
 getUser ()
 
 createDuplicate ()
 
 destroy ()
 
 validate ()
 
 addHandler ($display_id, $type, $table, $field, $options=array(), $id=NULL)
 
 getHandlers ($type, $display_id=NULL)
 
 getHandler ($display_id, $type, $id)
 
 setHandler ($display_id, $type, $id, $item)
 
 removeHandler ($display_id, $type, $id)
 
 setHandlerOption ($display_id, $type, $id, $option, $value)
 
 setShowAdminLinks ($show_admin_links)
 
 getShowAdminLinks ()
 
 mergeDefaults ()
 
 buildThemeFunctions ($hook)
 
 hasFormElements ()
 
 getDependencies ()
 
 serialize ()
 
 unserialize ($serialized)
 

Static Public Member Functions

static getHandlerTypes ()
 
static getPluginTypes ($type=NULL)
 
static generateHandlerId ($requested_id, $existing_items)
 

Data Fields

 $storage
 
 $built = FALSE
 
 $executed = FALSE
 
 $args = array()
 
 $build_info = array()
 
 $result = array()
 
 $total_rows = NULL
 
 $attachment_before = array()
 
 $attachment_after = array()
 
 $feedIcons = array()
 
 $exposed_data = array()
 
 $exposed_raw_input = array()
 
 $old_view = array()
 
 $parent_views = array()
 
 $is_attachment = NULL
 
 $current_display
 
 $query = NULL
 
 $pager = NULL
 
 $display_handler
 
 $displayHandlers
 
 $style_plugin
 
 $rowPlugin
 
 $row_index
 
 $override_url
 
 $override_path = NULL
 
 $base_database = NULL
 
 $field
 
 $argument
 
 $sort
 
 $filter
 
 $relationship
 
 $header
 
 $footer
 
 $empty
 
 $inited
 
 $exposed_widgets
 
 $preview
 
 $get_total_rows
 
 $build_sort
 
 $many_to_one_tables
 
 $dom_id
 
 $element
 

Protected Member Functions

 _preQuery ()
 
 _postExecute ()
 
 _initHandler ($key, $info)
 
 _buildArguments ()
 

Protected Attributes

 $ajaxEnabled = FALSE
 
 $current_page = NULL
 
 $items_per_page = NULL
 
 $offset = NULL
 
 $exposed_input = array()
 
 $response = NULL
 
 $request
 
 $user
 
 $showAdminLinks
 
 $viewsData
 
 $routeProvider
 

Detailed Description

Represents a view as a whole.

An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Constructor & Destructor Documentation

__construct ( ViewEntityInterface  $storage,
AccountInterface  $user,
ViewsData  $views_data,
RouteProviderInterface  $route_provider 
)

Constructs a new ViewExecutable object.

Parameters
\Drupal\views\ViewEntityInterface$storageThe view config entity the actual information is stored on.
\Drupal\Core\Session\AccountInterface$userThe current user.
\Drupal\views\ViewsData$views_dataThe views data.
\Drupal\Core\Routing\RouteProviderInterface$route_providerThe route provider.

Member Function Documentation

_build (   $key)

Internal method to build an individual set of handlers.

Todo:
Some filter needs this function, even it is internal.
Parameters
string$keyThe type of handlers (filter etc.) which should be iterated over to build the relationship and query information.

Referenced by ViewExecutable\build().

Here is the caller graph for this function:

_buildArguments ( )
protected

Build all the arguments.

References Html\decodeEntities().

Referenced by ViewExecutable\build(), and ViewExecutable\buildTitle().

Here is the call graph for this function:

Here is the caller graph for this function:

_initHandler (   $key,
  $info 
)
protected

Attach all of the handlers for each type.

Parameters
$keyOne of 'argument', 'field', 'sort', 'filter', 'relationship'
$infoThe $info from getHandlerTypes for this object.

Referenced by ViewExecutable\initHandlers().

Here is the caller graph for this function:

_postExecute ( )
protected

Run the postExecute() on all active handlers.

Referenced by ViewExecutable\execute().

Here is the caller graph for this function:

_preQuery ( )
protected

Run the preQuery() on all active handlers.

Referenced by ViewExecutable\build().

Here is the caller graph for this function:

access (   $displays = NULL,
  $account = NULL 
)

Determine if the given user has access to the view. Note that this sets the display handler if it hasn't been.

References ViewExecutable\initDisplay().

Here is the call graph for this function:

addCacheContext (   $cache_context)

Expands the list of used cache contexts for the view.

Parameters
string$cache_contextThe additional cache context.
Returns
$this
addHandler (   $display_id,
  $type,
  $table,
  $field,
  $options = array(),
  $id = NULL 
)

Adds an instance of a handler to the view.

Items may be fields, filters, sort criteria, or arguments.

Parameters
string$display_idThe machine name of the display.
string$typeThe type of handler being added.
string$tableThe name of the table this handler is from.
string$fieldThe name of the field this handler is from.
array$options(optional) Extra options for this instance. Defaults to an empty array.
string$id(optional) A unique ID for this handler instance. Defaults to NULL, in which case one will be generated.
Returns
string The unique ID for this handler instance.

References ViewExecutable\generateHandlerId(), and ViewExecutable\setDisplay().

Here is the call graph for this function:

ajaxEnabled ( )

Whether or not AJAX should be used.

See Also
::setAjaxEnabled().
Returns
bool

Referenced by ViewExecutable\setAjaxEnabled().

Here is the caller graph for this function:

attachDisplays ( )

Run attachment displays for the view.

References Views\executableFactory().

Referenced by ViewExecutable\build().

Here is the call graph for this function:

Here is the caller graph for this function:

build (   $display_id = NULL)

Build the query for the view.

References ViewExecutable\_build(), ViewExecutable\_buildArguments(), ViewExecutable\_preQuery(), ViewExecutable\attachDisplays(), Drupal\config(), FormState\hasAnyErrors(), ViewExecutable\initHandlers(), ViewExecutable\initQuery(), ViewExecutable\initStyle(), Drupal\moduleHandler(), and ViewExecutable\setDisplay().

Referenced by ViewExecutable\execute().

Here is the call graph for this function:

Here is the caller graph for this function:

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_idThe display ID.
array$argsAn array of arguments passed along to the view.
bool$cache(optional) Should the result be render cached.
Returns
array|null A renderable array with #type 'view' or NULL if the display ID was invalid.

References ViewExecutable\chooseDisplay(), and ViewExecutable\setDisplay().

Referenced by Attachment\attachTo().

Here is the call graph for this function:

Here is the caller graph for this function:

buildThemeFunctions (   $hook)

Provide a full array of possible theme functions to try for a given hook.

Parameters
string$hookThe hook to use. This is the base theme/template name.
Returns
array An array of theme hook suggestions.

References Tags\explode().

Here is the call graph for this function:

buildTitle ( )

Force the view to build a title.

References ViewExecutable\_buildArguments(), ViewExecutable\initDisplay(), ViewExecutable\initHandlers(), and ViewExecutable\initQuery().

Referenced by Feed\attachTo().

Here is the call graph for this function:

Here is the caller graph for this function:

chooseDisplay (   $displays)

Get the first display that is accessible to the user.

Parameters
array | string$displaysEither a single display id or an array of display ids.
Returns
string The first accessible display id, at least default.

References ViewExecutable\initDisplay().

Referenced by ViewExecutable\buildRenderable(), ViewExecutable\executeDisplay(), and ViewExecutable\setDisplay().

Here is the call graph for this function:

Here is the caller graph for this function:

createDuplicate ( )

Creates a duplicate ViewExecutable object.

Makes a copy of this view that has been sanitized of handlers, any runtime data, ID, and UUID.

destroy ( )

Unset references so that a $view object may be properly garbage collected.

Referenced by Feed\attachTo().

Here is the caller graph for this function:

execute (   $display_id = NULL)

Execute the view's query.

Parameters
string$display_idThe machine name of the display, which should be executed.
Returns
bool Return whether the executing was successful, for example an argument could stop the process.

References ViewExecutable\_postExecute(), ViewExecutable\build(), and Drupal\moduleHandler().

Referenced by ViewTestBase\executeView(), and ViewExecutable\unserialize().

Here is the call graph for this function:

Here is the caller graph for this function:

executeDisplay (   $display_id = NULL,
  $args = array() 
)

Execute 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 view the display, use View::preview() instead.

References ViewExecutable\chooseDisplay(), ViewExecutable\postExecute(), ViewExecutable\preExecute(), and ViewExecutable\setDisplay().

Here is the call graph for this function:

static generateHandlerId (   $requested_id,
  $existing_items 
)
static

Generates a unique ID for an handler instance.

These handler instances are typically fields, filters, sort criteria, or arguments.

Parameters
string$requested_idThe requested ID for the handler instance.
array$existing_itemsAn array of existing handler instances, keyed by their IDs.
Returns
string A unique ID. This will be equal to $requested_id if no handler instance with that ID already exists. Otherwise, it will be appended with an integer to make it unique, e.g., "{$requested_id}_1", "{$requested_id}_2", etc.

Referenced by ViewExecutable\addHandler(), and ViewExecutableTest\testGenerateHandlerId().

Here is the caller graph for this function:

getBaseTables ( )

Create a list of base tables eligible for this view. Used primarily for the UI. Display must be already initialized.

getCurrentPage ( )

Get the current page from the pager.

getDependencies ( )

Gets dependencies for the view.

See Also
::calculateDependencies()
::getDependencies()
Returns
array An array of dependencies grouped by type (module, theme, entity).
getDisplay ( )

Gets the current display plugin.

Returns

References ViewExecutable\initDisplay().

Referenced by ViewExecutable\getShowAdminLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

getExposedInput ( )

Figure out what the exposed input for this view is.

References ViewExecutable\initDisplay(), and Drupal\request().

Here is the call graph for this function:

getHandler (   $display_id,
  $type,
  $id 
)

Gets the configuration of a handler instance on a given display.

Parameters
string$display_idThe machine name of the display.
string$typeThe type of handler to retrieve.
string$idThe ID of the handler to retrieve.
Returns
array|null Either the handler instance's configuration, or NULL if the handler is not used on the display.

References ViewExecutable\setDisplay().

Referenced by ViewExecutable\setHandlerOption().

Here is the call graph for this function:

Here is the caller graph for this function:

getHandlers (   $type,
  $display_id = NULL 
)

Gets an array of handler instances for the current display.

Parameters
string$typeThe type of handlers to retrieve.
string$display_id(optional) A specific display machine name to use. If NULL, the current display will be used.
Returns
array An array of handler instances of a given type for this display.

References ViewExecutable\setDisplay().

Here is the call graph for this function:

static getHandlerTypes ( )
static

Provide a list of views handler types used in a view, with some information about them.

Returns
array An array of associative arrays containing:
  • title: The title of the handler type.
  • ltitle: The lowercase title of the handler type.
  • stitle: A singular title of the handler type.
  • lstitle: A singular lowercase title of the handler type.
  • plural: Plural version of the handler type.
  • (optional) type: The actual internal used handler type. This key is just used for header,footer,empty to link to the internal type: area.

References Views\getHandlerTypes().

Referenced by RearrangeFilter\buildForm(), AddHandler\buildForm(), Rearrange\buildForm(), ConfigHandlerExtra\buildForm(), ConfigHandlerGroup\buildForm(), DisplayPluginBase\getHandlers(), DisplayPluginBase\isIdentifierUnique(), DisplayPluginBase\mergeDefaults(), DisplayPluginBase\mergeHandler(), ViewsUIController\reportFields(), Rearrange\submitForm(), ConfigHandler\submitForm(), RearrangeFilter\submitForm(), ViewUI\submitItemAdd(), HandlerBase\submitTemporaryForm(), HandlerTest\testBrokenHandlers(), ViewExecutableTest\testGetHandlerTypes(), HandlerAllTest\testHandlers(), ViewExecutableTest\testInitMethods(), HandlerTest\testUICRUD(), DisplayPluginBase\validate(), and HandlerTest\viewsData().

Here is the call graph for this function:

Here is the caller graph for this function:

getItemsPerPage ( )

Get the items per page from the pager.

getOffset ( )

Get the pager offset from the pager.

getPager ( )

Get the current pager plugin.

Returns

References ViewExecutable\initPager().

Here is the call graph for this function:

getPath ( )

Get the base path used for this view.

References ViewExecutable\setDisplay().

Here is the call graph for this function:

static getPluginTypes (   $type = NULL)
static

Returns the valid types of plugins that can be used.

Returns
array An array of plugin type strings.

References Views\getPluginTypes().

Referenced by Views\getPluginDefinitions(), and PluginTypeListTest\testPluginList().

Here is the call graph for this function:

Here is the caller graph for this function:

getQuery ( )

Gets the current query plugin.

Returns

References ViewExecutable\initQuery().

Here is the call graph for this function:

getRequest ( )

Gets the request object.

Returns
$request Returns the request object.
getResponse ( )

Gets the response object used by the view.

Returns
The response object of the view.
getShowAdminLinks ( )

Returns whether admin links should be rendered on the view.

Returns
bool Returns TRUE if admin links should be rendered, else FALSE.

References ViewExecutable\getDisplay().

Here is the call graph for this function:

getStyle ( )

Gets the current style plugin.

Returns

References ViewExecutable\initStyle().

Here is the call graph for this function:

getTitle ( )

Get the view's current title. This can change depending upon how it was built.

References ViewExecutable\initStyle(), and ViewExecutable\setDisplay().

Referenced by Feed\attachTo().

Here is the call graph for this function:

Here is the caller graph for this function:

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. )
Returns
The display handlers URL object.
Exceptions
\InvalidArgumentExceptionThrown when the display plugin does not have a URL to return.

References ViewExecutable\initDisplay().

Here is the call graph for this function:

getUser ( )

Gets the current user.

Views plugins can receive the current user in order to not need dependency injection.

Returns
hasFormElements ( )

Determines if this view has form elements.

Returns
bool Returns TRUE if this view contains handlers with views form implementations, FALSE otherwise.

Referenced by DisplayPluginBase\elementPreRender().

Here is the caller graph for this function:

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.
Returns
bool

References Drupal\service().

Here is the call graph for this function:

id ( )

Returns the identifier.

Returns
string|null The entity identifier, or NULL if the object does not yet have an identifier.

Referenced by DisplayPluginBase\elementPreRender(), and ExposedFormTest\getExpectedExposedFormId().

Here is the caller graph for this function:

initDisplay ( )

Set the display for this view and initialize the display handler.

References Views\pluginManager().

Referenced by ViewExecutable\access(), ViewExecutable\buildTitle(), ViewExecutable\chooseDisplay(), ViewExecutable\getDisplay(), ViewExecutable\getExposedInput(), Analyzer\getMessages(), ViewExecutable\getUrlInfo(), ViewExecutable\initHandlers(), ViewExecutable\mergeDefaults(), ViewExecutable\newDisplay(), HandlerFieldFieldTest\prepareView(), ViewExecutable\setDisplay(), and ViewExecutable\validate().

Here is the call graph for this function:

Here is the caller graph for this function:

initHandlers ( )

Acquire and attach all of the handlers.

References ViewExecutable\_initHandler(), and ViewExecutable\initDisplay().

Referenced by StyleGridTest\assertGrid(), ViewExecutable\build(), ViewExecutable\buildTitle(), StyleTableUnitTest\prepareView(), and ViewExecutable\unserialize().

Here is the call graph for this function:

Here is the caller graph for this function:

initPager ( )

Initialize the pager

Like style initialization, pager initialization is held until late to allow for overrides.

Referenced by Sql\build(), and ViewExecutable\getPager().

Here is the caller graph for this function:

initQuery ( )

Do some common building initialization.

References Views\viewsData().

Referenced by StyleGridTest\assertGrid(), ViewExecutable\build(), ViewExecutable\buildTitle(), ViewExecutable\getQuery(), and StyleTableUnitTest\prepareView().

Here is the call graph for this function:

Here is the caller graph for this function:

initStyle ( )

Find and initialize the style plugin.

Note that arguments may have changed which style plugin we use, so check the view object first, then ask the display handler.

Referenced by StyleGridTest\assertGrid(), ViewExecutable\build(), ViewExecutable\getStyle(), ViewExecutable\getTitle(), and StyleTableUnitTest\prepareView().

Here is the caller graph for this function:

mergeDefaults ( )

Merges all plugin default values for each display.

References ViewExecutable\initDisplay().

Here is the call graph for this function:

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.
Returns
A new display plugin instance if executable is set, the new display ID otherwise.

References ViewExecutable\initDisplay().

Here is the call graph for this function:

postExecute ( )

Unset the current view, mostly.

Referenced by Sql\execute(), ViewExecutable\executeDisplay(), and ViewExecutable\preview().

Here is the caller graph for this function:

preExecute (   $args = array())

Run attachments and let the display do what it needs to do prior to running.

References Drupal\moduleHandler(), and ViewExecutable\setArguments().

Referenced by Sql\execute(), ViewExecutable\executeDisplay(), ViewTestBase\executeView(), and ViewExecutable\preview().

Here is the call graph for this function:

Here is the caller graph for this function:

preview (   $display_id = NULL,
  $args = array() 
)

Preview 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() instead.

References ViewExecutable\postExecute(), ViewExecutable\preExecute(), and ViewExecutable\setDisplay().

Referenced by StyleGridTest\assertGrid().

Here is the call graph for this function:

Here is the caller graph for this function:

removeHandler (   $display_id,
  $type,
  $id 
)

Removes configuration for a handler instance on a given display.

Parameters
string$display_idThe machine name of the display.
string$typeThe type of handler being removed.
string$idThe ID of the handler being removed.

References ViewExecutable\setDisplay().

Here is the call graph for this function:

renderPager (   $exposed_input)

Render the pager, if necessary.

Referenced by DisplayPluginBase\elementPreRender().

Here is the caller graph for this function:

save ( )

Saves the view.

serialize ( )

{}

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_enabledTRUE if AJAX should be used, FALSE otherwise.

References ViewExecutable\ajaxEnabled().

Here is the call graph for this function:

setArguments ( array  $args)

Set the arguments that come to this view. Usually from the URL but possibly from elsewhere.

Referenced by Attachment\attachTo(), Feed\attachTo(), ViewExecutable\preExecute(), and ViewExecutable\unserialize().

Here is the caller graph for this function:

setCurrentPage (   $page)

Change/Set the current page for the pager.

Parameters
int$pageThe current page.

Referenced by ViewExecutable\unserialize().

Here is the caller graph for this function:

setDisplay (   $display_id = NULL)

Sets the current display.

Parameters
string$display_idThe ID of the display to mark as current.
Returns
bool TRUE if the display was correctly set, FALSE otherwise.

References ViewExecutable\chooseDisplay(), format_string(), and ViewExecutable\initDisplay().

Referenced by ViewExecutable\addHandler(), StyleGridTest\assertGrid(), Attachment\attachTo(), Feed\attachTo(), ViewExecutable\build(), ViewExecutable\buildRenderable(), ViewExecutable\executeDisplay(), ViewTestBase\executeView(), ViewExecutable\getHandler(), ViewExecutable\getHandlers(), ViewExecutable\getPath(), ViewExecutable\getTitle(), StyleTableUnitTest\prepareView(), ViewExecutable\preview(), ViewExecutable\removeHandler(), ViewExecutable\setHandler(), ViewExecutable\unserialize(), and ViewExecutable\validate().

Here is the call graph for this function:

Here is the caller graph for this function:

setExposedInput (   $filters)

Set the exposed filters input to an array. If unset they will be taken from ::request()->query when the time comes.

Referenced by ViewExecutable\unserialize().

Here is the caller graph for this function:

setHandler (   $display_id,
  $type,
  $id,
  $item 
)

Sets the configuration of a handler instance on a given display.

Parameters
string$display_idThe machine name of the display.
string$typeThe type of handler being set.
string$idThe ID of the handler being set.
array | null$itemAn array of configuration for a handler, or NULL to remove this instance.
See Also
set_item_option()

References ViewExecutable\setDisplay().

Referenced by ViewExecutable\setHandlerOption().

Here is the call graph for this function:

Here is the caller graph for this function:

setHandlerOption (   $display_id,
  $type,
  $id,
  $option,
  $value 
)

Sets an option on a handler instance.

Use this only if you have just 1 or 2 options to set; if you have many, consider getting the handler instance, adding the options and using set_item() directly.

Parameters
string$display_idThe machine name of the display.
string$typeThe type of handler being set.
string$idThe ID of the handler being set.
string$optionThe configuration key for the value being set.
mixed$valueThe value being set.
See Also
set_item()

References ViewExecutable\getHandler(), and ViewExecutable\setHandler().

Here is the call graph for this function:

setItemsPerPage (   $items_per_page)

Set the items per page on the pager.

Parameters
int$items_per_pageThe items per page.
setOffset (   $offset)

Set the offset on the pager.

Parameters
int$offsetThe pager offset.
setRequest ( Request  $request)

Sets the request object.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request object.

References Drupal\request().

Referenced by ViewExecutable\unserialize().

Here is the call graph for this function:

Here is the caller graph for this function:

setResponse ( Response  $response)

Sets the used response object of the view.

Parameters
\Symfony\Component\HttpFoundation\Response$responseThe response object which should be set.
setShowAdminLinks (   $show_admin_links)

Enables admin links on the rendered view.

Parameters
bool$show_admin_linksTRUE if the admin links should be shown.
setTitle (   $title)

Override the view's current title.

The tokens in the title get's replaced before rendering.

unserialize (   $serialized)

{}

References Drupal\currentUser(), Drupal\entityManager(), ViewExecutable\execute(), ViewExecutable\initHandlers(), Drupal\request(), ViewExecutable\setArguments(), ViewExecutable\setCurrentPage(), ViewExecutable\setDisplay(), ViewExecutable\setExposedInput(), and ViewExecutable\setRequest().

Here is the call graph for this function:

usePager ( )

Determine if the pager actually uses a pager.

validate ( )

Makes sure the view is completely valid.

Returns
array An array of error strings. This will be empty if there are no validation errors.

References ViewExecutable\initDisplay(), and ViewExecutable\setDisplay().

Here is the call graph for this function:

Field Documentation

$element
Initial value:
= [
'#attached' => [
'library' => ['views/views.module']

The documentation for this class was generated from the following file: