You are here

public function UserProfilePage::__construct in Context 8.4

UserProfilePage constructor.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/UserProfilePage.php, line 51

Class

UserProfilePage
Provides a 'User profile page status' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentRouteMatch $currentRouteMatch, EntityFieldManager $entityFieldManager, AccountProxy $currentUser) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentRouteMatch = $currentRouteMatch;
  $this->entityFieldManager = $entityFieldManager;
  $this->currentUser = $currentUser;
}