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
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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) {