diff --git a/maestro.module b/maestro.module index ec49b2c1a0c15ee6b19cf5d11bf54f25a35ca50c..5ce36d52fc83e37840d319d1a3760e8bfc21b548 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 521a2c494a70be7d5518fd916b2ef386ff653f03..cdb99ab9a771f956779873d6d8114bcf2e4615a4 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 0c8afd2b851e5334a65d1b7ae815178d6cd998e5..c3d17ee561fcbedb40d8d7c199725eba57899ec9 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.')); } }