class RegexConstraint
Same name in other branches
- 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\RegexConstraint
- 8.9.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\RegexConstraint
- 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\RegexConstraint
Regex constraint.
Overrides the symfony constraint to use Drupal-style replacement patterns.
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\RegexConstraint extends \Symfony\Component\Validator\Constraints\Regex
Expanded class hierarchy of RegexConstraint
2 files declare their use of RegexConstraint
- ExtensionNameConstraint.php in core/
lib/ Drupal/ Core/ Extension/ Plugin/ Validation/ Constraint/ ExtensionNameConstraint.php - Recipe.php in core/
lib/ Drupal/ Core/ Recipe/ Recipe.php
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ RegexConstraint.php, line 14
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintView source
class RegexConstraint extends Regex {
/**
* {@inheritdoc}
*/
public function validatedBy() : string {
return '\\Symfony\\Component\\Validator\\Constraints\\RegexValidator';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RegexConstraint::validatedBy | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.