diff core/lib/Drupal/Core/Session/UserSession.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Session/UserSession.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/lib/Drupal/Core/Session/UserSession.php	Thu May 09 15:33:08 2019 +0100
@@ -155,6 +155,7 @@
    * {@inheritdoc}
    */
   public function getUsername() {
+    @trigger_error('\Drupal\Core\Session\AccountInterface::getUsername() is deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Session\AccountInterface::getAccountName() or \Drupal\user\UserInterface::getDisplayName() instead. See https://www.drupal.org/node/2572493', E_USER_DEPRECATED);
     return $this->getAccountName();
   }