Mercurial > hg > cmmr2012-drupal-site
comparison core/lib/Drupal/Core/Session/AccountProxy.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
32 /** | 32 /** |
33 * Initial account id. | 33 * Initial account id. |
34 * | 34 * |
35 * @var int | 35 * @var int |
36 * | 36 * |
37 * @deprecated Scheduled for removal in Drupal 8.4.x. Use $this->id instead. | 37 * @deprecated in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use |
38 * $this->id instead. | |
38 */ | 39 */ |
39 protected $initialAccountId; | 40 protected $initialAccountId; |
40 | 41 |
41 /** | 42 /** |
42 * {@inheritdoc} | 43 * {@inheritdoc} |
122 | 123 |
123 /** | 124 /** |
124 * {@inheritdoc} | 125 * {@inheritdoc} |
125 */ | 126 */ |
126 public function getUsername() { | 127 public function getUsername() { |
128 @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); | |
127 return $this->getAccountName(); | 129 return $this->getAccountName(); |
128 } | 130 } |
129 | 131 |
130 /** | 132 /** |
131 * {@inheritdoc} | 133 * {@inheritdoc} |