Search for Constraint
- Search 7.x for Constraint
- Search 9.5.x for Constraint
- Search 8.9.x for Constraint
- Search 11.x for Constraint
- Search main for Constraint
- Other projects
Exact matches
| Title | Object type | File name | Summary |
|---|---|---|---|
| Constraint | class | core/ |
Defines a Constraint attribute object. |
| Constraint | class | core/ |
Defines a validation constraint annotation object. |
| Constraint | class | core/ |
A value object representing a Drupal version constraint. |
All search results
| Title | Object type | File name | Summary |
|---|---|---|---|
| ImmutablePropertiesConstraintValidatorTest | class | core/ |
@group Entity @group Validation |
| ImmutablePropertiesConstraintValidatorTest.php | file | core/ |
|
| ImmutablePropertiesConstraintValidatorTest::$modules | property | core/ |
Modules to install. |
| ImmutablePropertiesConstraintValidatorTest::testImmutablePropertyCannotBeChanged | function | core/ |
Tests that changing a config entity's immutable property raises an error. |
| ImmutablePropertiesConstraintValidatorTest::testValidatedEntityMustHaveAnId | function | core/ |
Tests that entities without an ID will raise an exception. |
| ImmutablePropertiesConstraintValidatorTest::testValidatorRejectsANonExistentProperty | function | core/ |
Tests that the validator throws an exception for non-existent properties. |
| ImmutablePropertiesConstraintValidatorTest::testValidatorRequiresAConfigEntity | function | core/ |
Tests that only config entities are accepted by the validator. |
| IntegerItem::getConstraints | function | core/ |
Gets a list of validation constraints. |
| IntegrityConstraintViolationException | class | core/ |
Exception thrown if a query would violate an integrity constraint. |
| IntegrityConstraintViolationException.php | file | core/ |
|
| IsNullConstraint | class | core/ |
Null constraint. |
| IsNullConstraint.php | file | core/ |
|
| IsNullConstraintValidator | class | core/ |
Null constraint validator. |
| IsNullConstraintValidator.php | file | core/ |
|
| IsNullConstraintValidator::validate | function | core/ |
|
| LangcodeRequiredIfTranslatableValuesConstraint | class | core/ |
#[Constraint(id: 'LangcodeRequiredIfTranslatableValues', label: new TranslatableMarkup('Translatable config has langcode', [], [ 'context' => 'Validation', ]), type: [ 'config_object', ])] |
| LangcodeRequiredIfTranslatableValuesConstraint.php | file | core/ |
|
| LangcodeRequiredIfTranslatableValuesConstraint::$missingMessage | property | core/ |
The error message if this config object is missing a `langcode`. |
| LangcodeRequiredIfTranslatableValuesConstraint::$superfluousMessage | property | core/ |
The error message if this config object contains a superfluous `langcode`. |
| LangcodeRequiredIfTranslatableValuesConstraintValidator | class | core/ |
Validates the LangcodeRequiredIfTranslatableValues constraint. |
| LangcodeRequiredIfTranslatableValuesConstraintValidator.php | file | core/ |
|
| LangcodeRequiredIfTranslatableValuesConstraintValidator::validate | function | core/ |
|
| LengthConstraint | class | core/ |
Length constraint. |
| LengthConstraint.php | file | core/ |
|
| LengthConstraint::validatedBy | function | core/ |
@todo Add method return type declaration. |
| LengthConstraint::__construct | function | core/ |
|
| LinkAccessConstraint | class | core/ |
Defines an access validation constraint for links. |
| LinkAccessConstraint.php | file | core/ |
|
| LinkAccessConstraint::$message | property | core/ |
|
| LinkAccessConstraintValidator | class | core/ |
Validates the LinkAccess constraint. |
| LinkAccessConstraintValidator.php | file | core/ |
|
| LinkAccessConstraintValidator::$current_user | property | core/ |
Proxy for the current user account. |
| LinkAccessConstraintValidator::create | function | core/ |
Instantiates a new instance of this class. |
| LinkAccessConstraintValidator::validate | function | core/ |
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn |
| LinkAccessConstraintValidator::__construct | function | core/ |
Constructs an instance of the LinkAccessConstraintValidator class. |
| LinkAccessConstraintValidatorTest | class | core/ |
Tests the LinkAccessConstraintValidator validator. |
| LinkAccessConstraintValidatorTest.php | file | core/ |
|
| LinkAccessConstraintValidatorTest::providerValidate | function | core/ |
Data provider for LinkAccessConstraintValidator::validate(). |
| LinkAccessConstraintValidatorTest::testValidate | function | core/ |
Tests the access validation constraint for links. |
| LinkExternalProtocolsConstraint | class | core/ |
Defines a protocol validation constraint for links to external URLs. |
| LinkExternalProtocolsConstraint.php | file | core/ |
|
| LinkExternalProtocolsConstraint::$message | property | core/ |
|
| LinkExternalProtocolsConstraintValidator | class | core/ |
Validates the LinkExternalProtocols constraint. |
| LinkExternalProtocolsConstraintValidator.php | file | core/ |
|
| LinkExternalProtocolsConstraintValidator::validate | function | core/ |
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn |
| LinkExternalProtocolsConstraintValidatorTest | class | core/ |
@coversDefaultClass \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator[[api-linebreak]] @group Link |
| LinkExternalProtocolsConstraintValidatorTest.php | file | core/ |
|
| LinkExternalProtocolsConstraintValidatorTest::providerValidate | function | core/ |
Data provider for ::testValidate. |
| LinkExternalProtocolsConstraintValidatorTest::testValidate | function | core/ |
@covers ::validate[[api-linebreak]] @dataProvider providerValidate @runInSeparateProcess |
| LinkExternalProtocolsConstraintValidatorTest::testValidateIgnoresInternalUrls | function | core/ |
@covers ::validate[[api-linebreak]] |
Pagination
- Previous page
- Page 14
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.