Skip to content
Snippets Groups Projects
Verified Commit 6f71312b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2689923 by pradhumanjainOSL, johnrosswvsu, WagnerMelo, leoneldiaz02,...

Issue #2689923 by pradhumanjainOSL, johnrosswvsu, WagnerMelo, leoneldiaz02, Anchal_gupta, sk33lz, apaderno, smustgrave, alexpott, jhodgdon: hook_views_pre_view incorrect documentation example

(cherry picked from commit d8875803)
parent d7f67e22
Branches
Tags
5 merge requests!4488Issue #3376281: Random machine names no longer need to be wrapped in strtolower(),!3000Issue #793660: Check for failure of hook_install,!1627Issue #3082958: Add gitignore(s) to composer-ready project templates,!1014Issue #3226806: Move filter implementations from filter.module to plugin classes,!939Issue #2971209: Allow the MediaLibraryUiBuilder service to use an alternative view display
......@@ -284,12 +284,12 @@ public static function getDisabledViews() {
* @param string $filter
* Filters the views on status. Can either be 'all' (default), 'enabled' or
* 'disabled'
* @param mixed $exclude_view
* @param \Drupal\views\ViewExecutable|string $exclude_view
* View or current display to exclude.
* Either a:
* - views object (containing $exclude_view->storage->name and $exclude_view->current_display)
* - views name as string: e.g. my_view
* - views name and display id (separated by ':'): e.g. my_view:default
* - Views executable object
* - views name, for example 'my_view'
* - views name and display ID separated by ':', for example 'my_view:page'
* @param bool $optgroup
* If TRUE, returns an array with optgroups for each view (will be ignored for
* $views_only = TRUE). Can be used by select
......@@ -298,7 +298,7 @@ public static function getDisabledViews() {
*
* @return array
* An associative array for use in select.
* - key: view name and display id separated by ':', or the view name only.
* - key: view name and display ID separated by ':', or the view name only.
*/
public static function getViewsAsOptions($views_only = FALSE, $filter = 'all', $exclude_view = NULL, $optgroup = FALSE, $sort = FALSE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment