summaryrefslogtreecommitdiffstats
path: root/core/modules/node/tests/modules/node_test/node_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/node/tests/modules/node_test/node_test.module')
-rw-r--r--core/modules/node/tests/modules/node_test/node_test.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/node/tests/modules/node_test/node_test.module b/core/modules/node/tests/modules/node_test/node_test.module
index a2f06de..56aef63 100644
--- a/core/modules/node/tests/modules/node_test/node_test.module
+++ b/core/modules/node/tests/modules/node_test/node_test.module
@@ -182,10 +182,10 @@ function node_test_node_insert(NodeInterface $node) {
*/
function node_test_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (!$form_state->get('node_test_form_alter')) {
- drupal_set_message('Storage is not set');
+ \Drupal::messenger()->addStatus('Storage is not set');
$form_state->set('node_test_form_alter', TRUE);
}
else {
- drupal_set_message('Storage is set');
+ \Drupal::messenger()->addStatus('Storage is set');
}
}