Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
conditional_message
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
conditional_message
Commits
afd5ec4c
Commit
afd5ec4c
authored
1 year ago
by
Jelle Sebreghts
Committed by
William Ranvaud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3286638
by Jelle_S, Bushra Shaikh: Automated Drupal 10 compatibility fixes
parent
858aadf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conditional_message.info.yml
+1
-2
1 addition, 2 deletions
conditional_message.info.yml
conditional_message.module
+1
-1
1 addition, 1 deletion
conditional_message.module
src/Endpoint/ConditionalMessageEndpoint.php
+1
-0
1 addition, 0 deletions
src/Endpoint/ConditionalMessageEndpoint.php
with
3 additions
and
3 deletions
conditional_message.info.yml
+
1
−
2
View file @
afd5ec4c
name
:
'
Conditional
Message'
type
:
module
description
:
'
Displays
a
custom
message
on
a
given
condition.'
core
:
'
8.x'
core_version_requirement
:
^8 || ^9
core_version_requirement
:
^8 || ^9 || ^10
package
:
'
User
interface'
configure
:
entity.conditional_message.collection
dependencies
:
...
...
This diff is collapsed.
Click to expand it.
conditional_message.module
+
1
−
1
View file @
afd5ec4c
...
...
@@ -44,7 +44,7 @@ function conditional_message_help($route_name, RouteMatchInterface $route_match)
function
conditional_message_page_attachments
(
array
&
$page
)
{
// Load config from the entity fields.
$cmids
=
\Drupal
::
entityQuery
(
'conditional_message'
)
->
execute
();
$cmids
=
\Drupal
::
entityQuery
(
'conditional_message'
)
->
accessCheck
(
FALSE
)
->
execute
();
$configs
=
ConditionalMessage
::
loadMultiple
(
$cmids
);
$current_langcode
=
\Drupal
::
languageManager
()
->
getCurrentLanguage
()
->
getId
();
...
...
This diff is collapsed.
Click to expand it.
src/Endpoint/ConditionalMessageEndpoint.php
+
1
−
0
View file @
afd5ec4c
...
...
@@ -51,6 +51,7 @@ class ConditionalMessageEndpoint {
$cm_storage
=
$this
->
entityTypeManager
->
getStorage
(
'conditional_message'
);
$cmids
=
$cm_storage
->
getQuery
()
->
condition
(
'status'
,
1
)
->
accessCheck
(
TRUE
)
->
execute
();
$messages
=
$cm_storage
->
loadMultiple
(
$cmids
);
...
...
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