diff -u b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php --- b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php +++ b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php @@ -21,7 +21,7 @@ class CurrentUser extends ArgumentDefaultPluginBase implements CacheableDependencyInterface { /** - * CurrentUser. + * Gets the current active user. * * @var \Drupal\Core\Session\AccountProxyInterface */ @@ -36,16 +36,16 @@ * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. - * @param \Drupal\Core\Session\AccountProxyInterface $currentUser + * @param \Drupal\Core\Session\AccountProxyInterface $current_user * The current user. */ - public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $currentUser = NULL) { + public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $current_user = NULL) { parent::__construct($configuration, $plugin_id, $plugin_definition); - if ($currentUser === NULL) { - @trigger_error('Calling' . __CLASS__ . '::__construct() without the $currentUser argument is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/TBD', E_USER_DEPRECATED); - $currentUser = \Drupal::currentUser(); + if ($current_user === NULL) { + @trigger_error('Calling' . __CLASS__ . '::__construct() without the $currentUser argument is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3347878', E_USER_DEPRECATED); + $current_user = \Drupal::currentUser(); } - $this->currentUser = $currentUser; + $this->currentUser = $current_user; } /**