Search for validator

  1. Search 7.x for validator
  2. Search 9.5.x for validator
  3. Search 8.9.x for validator
  4. Search 11.x for validator
  5. Other projects
Title Object type File name Summary
CommentNameConstraintValidator::getAnonymousContactDetailsSetting function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Gets the anonymous contact details setting from the comment.
CommentNameConstraintValidator::validate function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
CommentNameConstraintValidator::__construct function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Constructs a new CommentNameConstraintValidator.
ComplexDataConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php Validates complex data.
ComplexDataConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php
ComplexDataConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php
ComplexDataConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php Tests ComplexData validation with both valid and invalid values.
ComplexDataConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
ComplexDataConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php The typed data manager to use.
ComplexDataConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
ComplexDataConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php Tests the ComplexData validation constraint validator.
ComponentValidator class core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Validates a component based on its definition and the component schema.
ComponentValidator.php file core/lib/Drupal/Core/Theme/Component/ComponentValidator.php
ComponentValidator::$validator property core/lib/Drupal/Core/Theme/Component/ComponentValidator.php The schema validator.
ComponentValidator::getClassProps function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Gets the props that are not JSON based.
ComponentValidator::nullifyClassPropsSchema function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Utility method to ensure the schema for class props is set to 'null'.
ComponentValidator::setValidator function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Sets the validator service if available.
ComponentValidator::validateClassProps function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Validates the props that are not JSON Schema.
ComponentValidator::validateDefinition function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Validates the component metadata file.
ComponentValidator::validateProps function core/lib/Drupal/Core/Theme/Component/ComponentValidator.php Validates that the props provided to the component.
ComponentValidatorTest class core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Unit tests for the component validation.
ComponentValidatorTest.php file core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php
ComponentValidatorTest::dataProviderValidateDefinitionInvalid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Data provider with invalid component definitions.
ComponentValidatorTest::dataProviderValidateDefinitionValid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Data provider with valid component definitions.
ComponentValidatorTest::dataProviderValidatePropsInvalid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Data provider with invalid component props.
ComponentValidatorTest::dataProviderValidatePropsValid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Data provider with valid component props.
ComponentValidatorTest::loadComponentDefinitionFromFs function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Loads a component definition from the component name.
ComponentValidatorTest::testValidateDefinitionInvalid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Tests invalid component definitions.
ComponentValidatorTest::testValidateDefinitionValid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Tests that valid component definitions don't cause errors.
ComponentValidatorTest::testValidatePropsInvalid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Tests that invalid props are handled properly.
ComponentValidatorTest::testValidatePropsValid function core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php Tests that valid props are handled properly.
ConfigCacheTag::$cacheTagsInvalidator property core/modules/system/src/EventSubscriber/ConfigCacheTag.php The cache tags invalidator.
ConfigEntityBaseUnitTest::$cacheTagsInvalidator property core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php The mocked cache backend.
ConfigEntityStorageTest::$cacheTagsInvalidator property core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php The mocked cache backend.
ConfigExistsConstraintValidator class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php Validates that a given config object exists.
ConfigExistsConstraintValidator.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php
ConfigExistsConstraintValidator::$configFactory property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php The config factory service.
ConfigExistsConstraintValidator::create function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php Instantiates a new instance of this class.
ConfigExistsConstraintValidator::validate function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php
ConfigExistsConstraintValidator::__construct function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php Constructs a ConfigExistsConstraintValidator object.
ConfigExistsConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Config/ConfigExistsConstraintValidatorTest.php Tests the ConfigExists constraint validator.
ConfigExistsConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Config/ConfigExistsConstraintValidatorTest.php
ConfigExistsConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Config/ConfigExistsConstraintValidatorTest.php Modules to install.
ConfigExistsConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Config/ConfigExistsConstraintValidatorTest.php Tests the ConfigExists constraint validator.
ConfigFactoryTest::$cacheTagsInvalidator property core/tests/Drupal/Tests/Core/Config/ConfigFactoryTest.php The mocked cache tags invalidator.
ConfigImportModuleUninstallValidatorInterface interface core/lib/Drupal/Core/Extension/ConfigImportModuleUninstallValidatorInterface.php Special interface for module uninstall validators for configuration import.
ConfigImportModuleUninstallValidatorInterface.php file core/lib/Drupal/Core/Extension/ConfigImportModuleUninstallValidatorInterface.php
ConfigImportModuleUninstallValidatorInterface::validateConfigImport function core/lib/Drupal/Core/Extension/ConfigImportModuleUninstallValidatorInterface.php Determines reasons a module can not be uninstalled prior to config import.
ConfigImportSubscriber::$uninstallValidators property core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php The uninstall validators.
ConfigImportSubscriber::addUninstallValidator function core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php Adds a module uninstall validator.

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