diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index c6c27c2f0f..4ef9d9e5b9 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -458,7 +458,7 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia * @see https://www.drupal.org/node/2774931 * * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. - * Use \Drupal::service('messenger')->addMessage() instead. + * Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead. */ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) { @trigger_error('drupal_set_message() is deprecated Drupal 8.5.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead. See https://www.drupal.org/node/2774931', E_USER_DEPRECATED); @@ -495,8 +495,8 @@ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) * @see https://www.drupal.org/node/2774931 * * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. - * Use \Drupal::service('messenger')>all() or - * \Drupal::service('messenger')>messagesByType() instead. + * Use \Drupal\Core\Messenger\MessengerInterface::all() or + * \Drupal\Core\Messenger\MessengerInterface::messagesByType() instead. */ function drupal_get_messages($type = NULL, $clear_queue = TRUE) { @trigger_error('drupal_get_message() is deprecated Drupal 8.5.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::all() or \Drupal\Core\Messenger\MessengerInterface::messagesByType() instead. See https://www.drupal.org/node/2774931', E_USER_DEPRECATED);