Loading src/Plugin/Condition/UserProfilePage.php +3 −3 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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; Loading Loading
src/Plugin/Condition/UserProfilePage.php +3 −3 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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; Loading