function LinkAccessConstraintValidator::create

Same name in other branches
  1. 9 core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::create()
  2. 8.9.x core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::create()
  3. 11.x core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

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

Class

LinkAccessConstraintValidator
Validates the LinkAccess constraint.

Namespace

Drupal\link\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('current_user'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.