function LinkAccessConstraintValidator::__construct
Same name in other branches
- 9 core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::__construct()
- 8.9.x core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::__construct()
- 11.x 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 30
Class
- LinkAccessConstraintValidator
- Validates the LinkAccess constraint.
Namespace
Drupal\link\Plugin\Validation\ConstraintCode
public function __construct(AccountProxyInterface $current_user) {
$this->current_user = $current_user;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.