You are here

public function LinkAccessConstraintValidator::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::__construct()

Constructs an instance of the LinkAccessConstraintValidator class.

Parameters

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user account.

File

core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php, line 29

Class

LinkAccessConstraintValidator
Validates the LinkAccess constraint.

Namespace

Drupal\link\Plugin\Validation\Constraint

Code

public function __construct(AccountProxyInterface $current_user) {
  $this->current_user = $current_user;
}