Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
ebe5550b
Verified
Commit
ebe5550b
authored
2 months ago
by
Alexandre Dias
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-9399: Remove unused token and fix test to prove it's fixed.
parent
299b7bc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!209
Release 2.2.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/features/paragraphs/events_calendar.feature
+1
-0
1 addition, 0 deletions
tests/features/paragraphs/events_calendar.feature
web/modules/custom/joinup_core/joinup_core.tokens.inc
+0
-15
0 additions, 15 deletions
web/modules/custom/joinup_core/joinup_core.tokens.inc
with
1 addition
and
15 deletions
tests/features/paragraphs/events_calendar.feature
+
1
−
0
View file @
ebe5550b
...
@@ -126,6 +126,7 @@ Feature:
...
@@ -126,6 +126,7 @@ Feature:
Then
I should see the message
"Custom page Upcoming events has been created."
Then
I should see the message
"Custom page Upcoming events has been created."
And
I should see the text
"Upcoming events"
in the
"Page title"
region
And
I should see the text
"Upcoming events"
in the
"Page title"
region
And I should see the following tiles in the correct order
:
And I should see the following tiles in the correct order
:
|
Dummy
Event
5
|
|
Upcoming
Event
1
|
|
Upcoming
Event
1
|
|
Dummy
upcoming
week
event
|
|
Dummy
upcoming
week
event
|
|
Upcoming
week
Event
|
|
Upcoming
week
Event
|
...
...
This diff is collapsed.
Click to expand it.
web/modules/custom/joinup_core/joinup_core.tokens.inc
+
0
−
15
View file @
ebe5550b
...
@@ -21,13 +21,6 @@ function joinup_core_token_info(): array {
...
@@ -21,13 +21,6 @@ function joinup_core_token_info(): array {
'description'
=>
t
(
'Generates a universally unique identifier.'
),
'description'
=>
t
(
'Generates a universally unique identifier.'
),
],
],
],
],
'view'
=>
[
'current_year'
=>
[
'name'
=>
t
(
'Current Year'
),
'description'
=>
t
(
'The current year.'
),
],
],
],
],
];
];
}
}
...
@@ -48,14 +41,6 @@ function joinup_core_tokens($type, $tokens, array $data, array $options, Bubblea
...
@@ -48,14 +41,6 @@ function joinup_core_tokens($type, $tokens, array $data, array $options, Bubblea
}
}
}
}
break
;
break
;
case
'view'
:
foreach
(
$tokens
as
$name
=>
$original
)
{
if
(
$name
===
'current_year'
)
{
$replacements
[
$original
]
=
date
(
'Y'
);
}
}
break
;
}
}
return
$replacements
;
return
$replacements
;
...
...
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