Search for ConstraintValidator

  1. Search 7.x for ConstraintValidator
  2. Search 8.9.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
LinkTypeConstraintValidator class core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraintValidator.php Constraint validator for links receiving data allowed by its settings.
LinkTypeConstraintValidator.php file core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraintValidator.php
LinkTypeConstraintValidator::validate function core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraintValidator.php
MediaTestConstraintValidator class core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php Validates the MediaTestConstraint.
MediaTestConstraintValidator.php file core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php
MediaTestConstraintValidator::validate function core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php
MenuSettingsConstraintValidator class core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php Constraint validator for changing the menu settings in pending revisions.
MenuSettingsConstraintValidator.php file core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php
MenuSettingsConstraintValidator::validate function core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php
MenuTreeHierarchyConstraintValidator class core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php Constraint validator for changing menu link parents in pending revisions.
MenuTreeHierarchyConstraintValidator.php file core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php
MenuTreeHierarchyConstraintValidator::$entityTypeManager property core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php The entity type manager.
MenuTreeHierarchyConstraintValidator::create function core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php Instantiates a new instance of this class.
MenuTreeHierarchyConstraintValidator::validate function core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php
MenuTreeHierarchyConstraintValidator::__construct function core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraintValidator.php Creates a new MenuTreeHierarchyConstraintValidator instance.
ModerationStateConstraintValidator class core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php Checks if a moderation state transition is valid.
ModerationStateConstraintValidator.php file core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
ModerationStateConstraintValidator::$currentUser property core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php The current user.
ModerationStateConstraintValidator::$entityTypeManager property core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php The entity type manager.
ModerationStateConstraintValidator::$moderationInformation property core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php The moderation info.
ModerationStateConstraintValidator::$stateTransitionValidation property core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php The state transition validation service.
ModerationStateConstraintValidator::create function core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php Instantiates a new instance of this class.
ModerationStateConstraintValidator::validate function core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
ModerationStateConstraintValidator::__construct function core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php Creates a new ModerationStateConstraintValidator instance.
NotNullConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php NotNull constraint validator.
NotNullConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php
NotNullConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php
OEmbedResourceConstraintValidator class core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php Validates oEmbed resource URLs.
OEmbedResourceConstraintValidator.php file core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php
OEmbedResourceConstraintValidator::$logger property core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php The logger service.
OEmbedResourceConstraintValidator::$resourceFetcher property core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php The resource fetcher service.
OEmbedResourceConstraintValidator::$urlResolver property core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php The oEmbed URL resolver service.
OEmbedResourceConstraintValidator::create function core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php Instantiates a new instance of this class.
OEmbedResourceConstraintValidator::handleException function core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php Handles exceptions that occur during validation.
OEmbedResourceConstraintValidator::validate function core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php
OEmbedResourceConstraintValidator::__construct function core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php Constructs a new OEmbedResourceConstraintValidator.
OEmbedResourceConstraintValidatorTest class core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php @coversDefaultClass \Drupal\media\Plugin\Validation\Constraint\OEmbedResourceConstraintValidator
OEmbedResourceConstraintValidatorTest.php file core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php
OEmbedResourceConstraintValidatorTest::$modules property core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php Modules to enable.
OEmbedResourceConstraintValidatorTest::getValue function core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php Wraps a media entity in an anonymous class to mock a field value.
OEmbedResourceConstraintValidatorTest::setUp function core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php
OEmbedResourceConstraintValidatorTest::testValidateEmptySource function core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php @covers ::validate
OEmbedResourceConstraintValidatorTest::testValidateUrlResolverInvoked function core/modules/media/tests/src/Kernel/OEmbedResourceConstraintValidatorTest.php @covers ::validate
PathAliasConstraintValidator class core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php Constraint validator for changing path aliases in pending revisions.
PathAliasConstraintValidator.php file core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php
PathAliasConstraintValidator::$entityTypeManager property core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php The entity type manager.
PathAliasConstraintValidator::create function core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php Instantiates a new instance of this class.
PathAliasConstraintValidator::validate function core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php
PathAliasConstraintValidator::__construct function core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraintValidator.php Creates a new PathAliasConstraintValidator instance.
PrimitiveTypeConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php Validates the PrimitiveType constraint.

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