Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / condition_test / src / FormController.php
index da475ae0c4e93d9eaca491c85403b6e06bd6d6da..19dc9505bd288aef8cfee03967641c160895cbb0 100644 (file)
@@ -60,13 +60,13 @@ class FormController implements FormInterface {
     $this->condition->submitConfigurationForm($form, $form_state);
     $config = $this->condition->getConfig();
     foreach ($config['bundles'] as $bundle) {
-      drupal_set_message('Bundle: ' . $bundle);
+      \Drupal::messenger()->addStatus('Bundle: ' . $bundle);
     }
 
     $article = Node::load(1);
     $this->condition->setContextValue('node', $article);
     if ($this->condition->execute()) {
-      drupal_set_message(t('Executed successfully.'));
+      \Drupal::messenger()->addStatus(t('Executed successfully.'));
     }
   }