Search for ConstraintValidator

  1. Search 7.x for ConstraintValidator
  2. Search 9.5.x for ConstraintValidator
  3. Search 8.9.x for ConstraintValidator
  4. Search 10.3.x for ConstraintValidator
  5. Other projects
Title Object type File name Summary
ToolbarItemConditionsMetConstraintValidator::findDefinitionForToolbarItem function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraintValidator.php Searches for CKEditor 5 plugin that provides a given toolbar item.
ToolbarItemConditionsMetConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraintValidator.php
ToolbarItemConstraintValidator class core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraintValidator.php Toolbar item constraint validator.
ToolbarItemConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraintValidator.php
ToolbarItemConstraintValidator::isValidToolbarItem function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraintValidator.php Validates the given toolbar item.
ToolbarItemConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraintValidator.php
ToolbarItemDependencyConstraintValidator class core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemDependencyConstraintValidator.php Toolbar item dependency constraint validator.
ToolbarItemDependencyConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemDependencyConstraintValidator.php
ToolbarItemDependencyConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemDependencyConstraintValidator.php
UniqueLabelInListConstraintValidator class core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraintValidator.php Uniquely labeled list item constraint validator.
UniqueLabelInListConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraintValidator.php
UniqueLabelInListConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraintValidator.php
UniquePathAliasConstraintValidator class core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php Constraint validator for a unique path alias.
UniquePathAliasConstraintValidator.php file core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php
UniquePathAliasConstraintValidator::$entityTypeManager property core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php The entity type manager.
UniquePathAliasConstraintValidator::create function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php Instantiates a new instance of this class.
UniquePathAliasConstraintValidator::validate function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php
UniquePathAliasConstraintValidator::__construct function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php Creates a new UniquePathAliasConstraintValidator instance.
UniqueValuesConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the unique field value validation constraint.
UniqueValuesConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php
UniqueValuesConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Modules to install.
UniqueValuesConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests cases where the validation passes for entities with string IDs.
UniqueValuesConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the UniqueField validation constraint validator.
UniqueValuesConstraintValidatorTest::testValidationCaseInsensitive function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the UniqueField validation constraint validator with regards to case-insensitivity.
UniqueValuesConstraintValidatorTest::testValidationMultiple function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the UniqueField validation constraint validator for multiple violations.
UniqueValuesConstraintValidatorTest::testValidationOwn function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the UniqueField validation constraint validator for existing value in the same entity.
UniqueValuesConstraintValidatorTest::testValidationReference function core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php Tests the UniqueField validation constraint validator for entity reference fields.
UploadedFileConstraintValidator class core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php Constraint validator for uploaded files.
UploadedFileConstraintValidator.php file core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php
UploadedFileConstraintValidator::validate function core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php
UploadedFileConstraintValidatorTest class core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Tests the uploaded file validator.
UploadedFileConstraintValidatorTest.php file core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php
UploadedFileConstraintValidatorTest::$filename property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The file name.
UploadedFileConstraintValidatorTest::$maxSize property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The max 4 MB filesize to use for testing.
UploadedFileConstraintValidatorTest::$modules property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Modules to install.
UploadedFileConstraintValidatorTest::$path property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The temporary file path.
UploadedFileConstraintValidatorTest::$validator property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php A validator.
UploadedFileConstraintValidatorTest::setUp function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php
UploadedFileConstraintValidatorTest::testValidateFail function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php @covers ::validate
@dataProvider validateProvider
UploadedFileConstraintValidatorTest::testValidateSuccess function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php @covers ::validate
UploadedFileConstraintValidatorTest::validateProvider function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Data provider for ::testValidateFail.
UriHostConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraintValidator.php Validates if a string conforms to the RFC 3986 host component.
UriHostConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraintValidator.php
UriHostConstraintValidator::isValid function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraintValidator.php Return TRUE if value is a valid hostname or IP address literal.
UriHostConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraintValidator.php
UserNameConstraintValidator class core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php Validates the UserName constraint.
UserNameConstraintValidator.php file core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
UserNameConstraintValidator::validate function core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
ValidKeysConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php Validates the ValidKeys constraint.
ValidKeysConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php

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