Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_suite_bootstrap
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
ui_suite_bootstrap
Commits
9f93b725
Commit
9f93b725
authored
10 months ago
by
azuryte
Committed by
Florent Torregrosa
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3415109
by azuryte: Update pager preprocess hook
parent
fb6da33b
No related branches found
No related tags found
1 merge request
!177
Issue #3415109 by azuryte: Update pager preprocess hook
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui_suite_bootstrap.theme
+6
-3
6 additions, 3 deletions
ui_suite_bootstrap.theme
with
6 additions
and
3 deletions
ui_suite_bootstrap.theme
+
6
−
3
View file @
9f93b725
...
...
@@ -41,11 +41,14 @@ function ui_suite_bootstrap_preprocess_breadcrumb(array &$variables): void {
* Implements hook_preprocess_HOOK() for 'pager'.
*/
function
ui_suite_bootstrap_preprocess_pager
(
array
&
$variables
):
void
{
if
(
!
isset
(
$variables
[
'items'
]))
{
return
;
}
$before
=
LinksSettingType
::
normalize
(
array_filter
([
$variables
[
"
items
"
][
"
first
"
]
?:
[],
$variables
[
"
items
"
][
"
previous
"
]
?:
[],
$variables
[
'
items
'
][
'
first
'
]
?:
[],
$variables
[
'
items
'
][
'
previous
'
]
?:
[],
]));
$pages
=
LinksSettingType
::
normalize
(
$variables
[
"
items
"
][
"
pages
"
]);
$pages
=
LinksSettingType
::
normalize
(
$variables
[
'
items
'
][
'
pages
'
]
??
[
]);
unset
(
$pages
[
$variables
[
"current"
]
-
1
][
"url"
]);
$after
=
LinksSettingType
::
normalize
(
array_filter
([
$variables
[
"items"
][
"next"
]
?:
[],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment