Commit 9992ee1b authored by nchiasson's avatar nchiasson Committed by Paulo Henrique Cota Starling
Browse files

Issue #3301569 by Alexander-Cairns, quotics: UserProfilePage uses AccountProxy...

Issue #3301569 by Alexander-Cairns, quotics: UserProfilePage uses AccountProxy instead of AccountProxyInterface
parent c691cede
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityFieldManager;
use Drupal\user\Entity\User;
use Drupal\Core\Session\AccountProxy;
use Drupal\Core\Session\AccountProxyInterface;

/**
 * Provides a 'User profile page status' condition.
@@ -41,14 +41,14 @@ class UserProfilePage extends ConditionPluginBase implements ContainerFactoryPlu
  /**
   * Service current_user.
   *
   * @var \Drupal\Core\Session\AccountProxy
   * @var \Drupal\Core\Session\AccountProxyInterface
   */
  private $currentUser;

  /**
   * UserProfilePage constructor.
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentRouteMatch $currentRouteMatch, EntityFieldManager $entityFieldManager, AccountProxy $currentUser) {
  public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentRouteMatch $currentRouteMatch, EntityFieldManager $entityFieldManager, AccountProxyInterface $currentUser) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->currentRouteMatch = $currentRouteMatch;
    $this->entityFieldManager = $entityFieldManager;