Search for getConstraint

  1. Search 7.x for getConstraint
  2. Search 8.9.x for getConstraint
  3. Search 10.3.x for getConstraint
  4. Search 11.x for getConstraint
  5. Other projects
Title Object type File name Summary
Context::getConstraints function core/lib/Drupal/Core/Plugin/Context/Context.php Gets a list of validation constraints.
Context::getConstraints function core/lib/Drupal/Component/Plugin/Context/Context.php Gets a list of validation constraints.
ContextDefinition::getConstraint function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets a validation constraint.
ContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Extracts an array of constraints for a context definition object.
ContextDefinition::getConstraints function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets an array of validation constraints.
ContextDefinitionInterface::getConstraint function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Gets a validation constraint.
ContextDefinitionInterface::getConstraints function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Gets an array of validation constraints.
ContextDefinitionTest::providerGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php Data provider for testGetConstraint.
ContextDefinitionTest::testGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php @dataProvider providerGetConstraint
@covers ::getConstraint
@uses \Drupal
ContextInterface::getConstraints function core/lib/Drupal/Component/Plugin/Context/ContextInterface.php Gets a list of validation constraints.
DataDefinition::getConstraint function core/lib/Drupal/Core/TypedData/DataDefinition.php Returns a validation constraint.
DataDefinition::getConstraints function core/lib/Drupal/Core/TypedData/DataDefinition.php Returns an array of validation constraints.
DataDefinitionInterface::getConstraint function core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php Returns a validation constraint.
DataDefinitionInterface::getConstraints function core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php Returns an array of validation constraints.
DataReferenceTargetDefinition::getConstraints function core/lib/Drupal/Core/TypedData/DataReferenceTargetDefinition.php Returns an array of validation constraints.
DecimalItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php Gets a list of validation constraints.
Dependency::getConstraint function core/lib/Drupal/Core/Extension/Dependency.php Gets the Constraint object.
Dependency::getConstraintString function core/lib/Drupal/Core/Extension/Dependency.php Gets constraint string from the dependency.
EmailItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php Gets a list of validation constraints.
EntityAdapterUnitTest::testGetConstraints function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::getConstraints
EntityContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Extracts an array of constraints for a context definition object.
EntityReferenceFieldItemList::getConstraints function core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php Gets a list of validation constraints.
EntityReferenceItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php Gets a list of validation constraints.
EntityType::getConstraints function core/lib/Drupal/Core/Entity/EntityType.php Gets an array of validation constraints.
EntityTypeInterface::getConstraints function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets an array of validation constraints.
FieldConfigBase::getConstraint function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns a validation constraint.
FieldConfigBase::getConstraints function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns an array of validation constraints.
FieldItemList::getConstraints function core/lib/Drupal/Core/Field/FieldItemList.php Gets a list of validation constraints.
FieldStorageConfig::getConstraint function core/modules/field/src/Entity/FieldStorageConfig.php Returns a validation constraint.
FieldStorageConfig::getConstraints function core/modules/field/src/Entity/FieldStorageConfig.php Returns an array of validation constraints.
FieldStorageDefinitionInterface::getConstraint function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Returns a validation constraint.
FieldStorageDefinitionInterface::getConstraints function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Returns an array of validation constraints.
FieldWidgetConstraint class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php Supports validating widget constraints.
FieldWidgetConstraint.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php
FieldWidgetConstraint::$message property core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php
FieldWidgetConstraintValidator class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraintValidator.php Validates the FieldWidgetConstraint constraint.
FieldWidgetConstraintValidator.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraintValidator.php
FieldWidgetConstraintValidator::validate function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraintValidator.php
FieldWidgetConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Tests validation constraints for FieldWidgetConstraintValidatorTest.
FieldWidgetConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
FieldWidgetConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Modules to enable.
FieldWidgetConstraintValidatorTest::getErrorsForEntity function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Gets the form errors for a given entity.
FieldWidgetConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
FieldWidgetConstraintValidatorTest::testEntityLevelConstraintValidation function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Tests entity level constraint validation.
FieldWidgetConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Tests widget constraint validation.
FieldWidgetConstraintValidatorTest::testValidationWithCompositeConstraint function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Tests widget constraint validation with composite constraints.
IntegerItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php Gets a list of validation constraints.
NumericItemBase::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php Gets a list of validation constraints.
StringItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php Gets a list of validation constraints.
TelephoneItem::getConstraints function core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php Gets a list of validation constraints.

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