Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
layout_options
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
layout_options
Merge requests
!16
skip filtering & sorting if there's only one result
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
skip filtering & sorting if there's only one result
issue/layout_options-3351694:3351694-one-result
into
8.x-1.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
Ben Stallings
requested to merge
issue/layout_options-3351694:3351694-one-result
into
8.x-1.x
7 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3351694
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
df6d5edf
1 commit,
7 months ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Plugin/Layout/LayoutOptions.php
+
5
−
0
Options
@@ -540,6 +540,11 @@ class LayoutOptions extends LayoutDefault implements PluginFormInterface, Contai
* The sorted results.
*/
protected
function
filterAndSortResultsByThemeHierarchy
(
array
$results
):
array
{
// If there's only one result, we can and should skip this step.
if
(
count
(
$results
)
==
1
)
{
return
$results
;
}
$default_theme_name
=
$this
->
themeHandler
->
getDefault
();
$themes
=
$this
->
themeHandler
->
listInfo
();
// Create a list which includes the current theme and all its base themes.
Loading