public function LinkAccessConstraintValidator::__construct in Drupal 9
Same name and namespace in other branches
- 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\ConstraintCode
public function __construct(AccountProxyInterface $current_user) {
$this->current_user = $current_user;
}