Drupal 8  8.0.2
ProtectedUserFieldConstraintValidator Class Reference
Inheritance diagram for ProtectedUserFieldConstraintValidator:

Public Member Functions

 __construct (UserStorageInterface $user_storage, AccountProxyInterface $current_user)
 
 validate ($items, Constraint $constraint)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $userStorage
 
 $currentUser
 

Detailed Description

Validates the ProtectedUserFieldConstraint constraint.

Constructor & Destructor Documentation

__construct ( UserStorageInterface  $user_storage,
AccountProxyInterface  $current_user 
)

Constructs the object.

Parameters
\Drupal\user\UserStorageInterface$user_storageThe user storage handler.
\Drupal\Core\Session\AccountProxyInterface$current_userThe current user.

References Drupal\currentUser().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{Instantiates a new instance of this class.This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this instance should use.
}

Implements ContainerInjectionInterface.

validate (   $items,
Constraint  $constraint 
)

{}

References Drupal\currentUser().

Here is the call graph for this function:


The documentation for this class was generated from the following file: