class LinkAccessConstraint

Same name in other branches
  1. 9 core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraint
  2. 10 core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraint
  3. 11.x core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraint

Defines an access validation constraint for links.

Plugin annotation


@Constraint(
  id = "LinkAccess",
  label = @Translation("Link URI can be accessed by the user.", context = "Validation"),
)

Hierarchy

  • class \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of LinkAccessConstraint

1 file declares its use of LinkAccessConstraint
LinkAccessConstraintValidatorTest.php in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php

File

core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraint.php, line 15

Namespace

Drupal\link\Plugin\Validation\Constraint
View source
class LinkAccessConstraint extends Constraint {
    public $message = "The path '@uri' is inaccessible.";

}

Members

Title Sort descending Modifiers Object type Summary
LinkAccessConstraint::$message public property

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