X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FViews.php;fp=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FViews.php;h=dd241f714b602507c356ee5fca23cf5872c229e7;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=9962d38d574dd1d25aefc2eb84675f96f43349ca;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/views/src/Views.php b/web/core/modules/views/src/Views.php index 9962d38d5..dd241f714 100644 --- a/web/core/modules/views/src/Views.php +++ b/web/core/modules/views/src/Views.php @@ -283,8 +283,8 @@ class Views { * Filters the views on status. Can either be 'all' (default), 'enabled' or * 'disabled' * @param mixed $exclude_view - * view or current display to exclude - * either a + * 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 @@ -512,7 +512,7 @@ class Views { throw new \Exception('Invalid plugin type used. Valid types are "plugin" or "handler".'); } - return array_keys(array_filter(static::$plugins, function($plugin_type) use ($type) { + return array_keys(array_filter(static::$plugins, function ($plugin_type) use ($type) { return $plugin_type == $type; })); }