From d0580768a1516f08ddf8b3c42e73568b0b07270a Mon Sep 17 00:00:00 2001 From: Project-Update-bot <updatebot@assosiation.drupal.org> Date: Sun, 12 Jan 2025 09:44:45 +0000 Subject: [PATCH] Automated Project Update Bot fixes from run 11-392907. --- maestro.module | 4 ++-- modules/maestro_webform/tests/src/Functional/LoadTest.php | 5 +++++ src/Plugin/RulesAction/MaestroRulesActionSpawnWorkflow.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/maestro.module b/maestro.module index ec49b2c..5ce36d5 100644 --- a/maestro.module +++ b/maestro.module @@ -330,7 +330,7 @@ function maestro_node_view_alter(array &$build, EntityInterface $entity, EntityV $config = \Drupal::config('maestro.settings'); $queueID = intval(\Drupal::request()->query->get('queueid', 0)); $isMaestro = intval(\Drupal::request()->query->get('maestro', 0)); - + //check if we're using a sitewide token $sitewideToken = $config->get('maestro_sitewide_token'); if($sitewideToken != '') { @@ -651,7 +651,7 @@ function maestro_token_info() { 'name' => t('Queue Token'), 'description' => t('The token assigned to the task in question.'), ]; - + $maestro['maestro-sitewide-token'] = [ 'name' => t('Maestro Sitewide Token'), 'description' => t('The key configured as the Maestro Sitewide Token.'), diff --git a/modules/maestro_webform/tests/src/Functional/LoadTest.php b/modules/maestro_webform/tests/src/Functional/LoadTest.php index 521a2c4..cdb99ab 100644 --- a/modules/maestro_webform/tests/src/Functional/LoadTest.php +++ b/modules/maestro_webform/tests/src/Functional/LoadTest.php @@ -12,6 +12,11 @@ use Drupal\Tests\BrowserTestBase; */ class LoadTest extends BrowserTestBase { + /** + * {@inheritdoc} + */ + protected $defaultTheme = 'stark'; + /** * Modules to enable. * diff --git a/src/Plugin/RulesAction/MaestroRulesActionSpawnWorkflow.php b/src/Plugin/RulesAction/MaestroRulesActionSpawnWorkflow.php index 0c8afd2..c3d17ee 100644 --- a/src/Plugin/RulesAction/MaestroRulesActionSpawnWorkflow.php +++ b/src/Plugin/RulesAction/MaestroRulesActionSpawnWorkflow.php @@ -48,7 +48,7 @@ class MaestroRulesActionSpawnWorkflow extends RulesActionBase { } else { // Error condition. The process was unable to be kicked off. - drupal_set_message(t('Unable to begin workflow. Please check with administrator for more information.')); + \Drupal::messenger()->addStatus(t('Unable to begin workflow. Please check with administrator for more information.')); } } -- GitLab