class LinkNotExistingInternalConstraint in Drupal 10
Same name and namespace in other branches
- 8 core/modules/link/src/Plugin/Validation/Constraint/LinkNotExistingInternalConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraint
- 9 core/modules/link/src/Plugin/Validation/Constraint/LinkNotExistingInternalConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraint
Defines a protocol validation constraint for links to broken internal URLs.
Plugin annotation
@Constraint(
id = "LinkNotExistingInternal",
label = @Translation("No broken internal links", context = "Validation"),
)
Hierarchy
- class \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of LinkNotExistingInternalConstraint
1 file declares its use of LinkNotExistingInternalConstraint
- LinkNotExistingInternalConstraintValidatorTest.php in core/
modules/ link/ tests/ src/ Unit/ Plugin/ Validation/ Constraint/ LinkNotExistingInternalConstraintValidatorTest.php
File
- core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkNotExistingInternalConstraint.php, line 15
Namespace
Drupal\link\Plugin\Validation\ConstraintView source
class LinkNotExistingInternalConstraint extends Constraint {
public $message = "The path '@uri' is invalid.";
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkNotExistingInternalConstraint:: |
public | property |