Skip to content
Snippets Groups Projects
Commit afd5ec4c authored by Jelle Sebreghts's avatar Jelle Sebreghts Committed by William Ranvaud
Browse files

Issue #3286638 by Jelle_S, Bushra Shaikh: Automated Drupal 10 compatibility fixes

parent 858aadf2
No related branches found
No related tags found
No related merge requests found
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:
......
......@@ -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();
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment