You are here

public static function UserProfilePage::create in Context 8.4

UserProfilePage create function.

Overrides ContainerFactoryPluginInterface::create

File

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

Class

UserProfilePage
Provides a 'User profile page status' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('current_route_match'), $container
    ->get('entity_field.manager'), $container
    ->get('current_user'));
}