Search for ConstraintValidator

  1. Search 7.x for ConstraintValidator
  2. Search 9.5.x for ConstraintValidator
  3. Search 10.3.x for ConstraintValidator
  4. Search 11.x for ConstraintValidator
  5. Other projects
Title Object type File name Summary
ContentTranslationSynchronizedFieldsConstraintValidator class core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Checks that synchronized fields are handled correctly in pending revisions.
ContentTranslationSynchronizedFieldsConstraintValidator.php file core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php
ContentTranslationSynchronizedFieldsConstraintValidator::$contentTranslationManager property core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php The content translation manager.
ContentTranslationSynchronizedFieldsConstraintValidator::$entityTypeManager property core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php The entity type manager.
ContentTranslationSynchronizedFieldsConstraintValidator::$synchronizer property core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php The field translation synchronizer.
ContentTranslationSynchronizedFieldsConstraintValidator::create function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Instantiates a new instance of this class.
ContentTranslationSynchronizedFieldsConstraintValidator::getOriginalEntity function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Returns the original unchanged entity to be used to detect changes.
ContentTranslationSynchronizedFieldsConstraintValidator::getOriginalTranslation function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Returns the original translation.
ContentTranslationSynchronizedFieldsConstraintValidator::getSynchronizedPropertiesByField function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Returns the synchronized properties for every specified field.
ContentTranslationSynchronizedFieldsConstraintValidator::hasSynchronizedPropertyChanges function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Checks whether any synchronized property has changes.
ContentTranslationSynchronizedFieldsConstraintValidator::validate function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php
ContentTranslationSynchronizedFieldsConstraintValidator::__construct function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php ContentTranslationSynchronizedFieldsConstraintValidator constructor.
DateTimeFormatConstraintValidator class core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php Constraint validator for DateTime items to ensure the format is correct.
DateTimeFormatConstraintValidator.php file core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php
DateTimeFormatConstraintValidator::validate function core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php
DeletedWorkspaceConstraintValidator class core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php Checks if data still exists for a deleted workspace ID.
DeletedWorkspaceConstraintValidator.php file core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php
DeletedWorkspaceConstraintValidator::$workspaceAssociation property core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php The workspace association service.
DeletedWorkspaceConstraintValidator::create function core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php Instantiates a new instance of this class.
DeletedWorkspaceConstraintValidator::validate function core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php
DeletedWorkspaceConstraintValidator::__construct function core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php Creates a new DeletedWorkspaceConstraintValidator instance.
EntityChangedConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php Validates the EntityChanged constraint.
EntityChangedConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php
EntityChangedConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php
EntityHasFieldConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php Validates the EntityHasField constraint.
EntityHasFieldConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
EntityHasFieldConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
EntityHasFieldConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php @covers \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraintValidator
EntityHasFieldConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php
EntityHasFieldConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php Modules to enable.
EntityHasFieldConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php
EntityHasFieldConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php
EntityReferenceSupportedNewEntitiesConstraintValidator class core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php Checks if new entities created for entity reference fields are supported.
EntityReferenceSupportedNewEntitiesConstraintValidator.php file core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php
EntityReferenceSupportedNewEntitiesConstraintValidator::$entityTypeManager property core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php The entity type manager.
EntityReferenceSupportedNewEntitiesConstraintValidator::$workspaceManager property core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php The workspace manager.
EntityReferenceSupportedNewEntitiesConstraintValidator::create function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php Instantiates a new instance of this class.
EntityReferenceSupportedNewEntitiesConstraintValidator::validate function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php
EntityReferenceSupportedNewEntitiesConstraintValidator::__construct function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php Creates a new EntityReferenceSupportedNewEntitiesConstraintValidator instance.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest class core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php @coversDefaultClass \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraintValidator
@group workspaces
EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php file core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::$modules property core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php Modules to enable.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::setUp function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesAllowedInDefaultWorkspace function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php @covers ::validate
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesForbiddenInNonDefaultWorkspace function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php @covers ::validate
EntityTestCompositeConstraintValidator class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php Constraint validator for the EntityTestComposite constraint.
EntityTestCompositeConstraintValidator.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
EntityTestCompositeConstraintValidator::$context property core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php Validator 2.5 and upwards compatible execution context.
EntityTestCompositeConstraintValidator::validate function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
EntityTypeConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraintValidator.php Validates the EntityType constraint.

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