Search for valid

  1. Search 7.x for valid
  2. Search 9.5.x for valid
  3. Search 8.9.x for valid
  4. Search 10.3.x for valid
  5. Other projects
Title Object type File name Summary
ManagedFile::validateManagedFile function core/modules/file/src/Element/ManagedFile.php Render API callback: Validates the managed_file element.
ManagedFileTest::validateForm function core/modules/file/tests/src/Kernel/ManagedFileTest.php
ManagedStorageTest::testInvalidStorage function core/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php Tests an invalid storage.
ManageFieldsFunctionalTest::testFieldNameValidation function core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php Tests validation of duplicate and disallowed field names.
ManageFieldsFunctionalTest::testInvalidUrlsAndDestinations function core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php Tests invalid field UI URLs and destinations.
ManageFieldsTest::testAllowedValuesFormValidation function core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php Tests the form validation for allowed values field.
ManageFieldsTest::testLabelFieldFormValidation function core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php Tests the form validation for label field.
Mapping::getDynamicallyValidKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all dynamically valid keys.
Mapping::getValidKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all keys allowed in this mapping.
MappingTest::testInvalidMappingKeyDefinition function core/tests/Drupal/KernelTests/Config/Schema/MappingTest.php @testWith [false, 42, "The mapping definition at `foobar` is invalid: its `invalid` key contains a integer. It must be an array."]
[false, 10.2, "The mapping definition at `foobar` is invalid: its `invalid` key contains a double. It…
MappingTest::testInvalidRequiredKeyFlag function core/tests/Drupal/KernelTests/Config/Schema/MappingTest.php @testWith [true]
[1]
["true"]
[0]
["false"]
Media::validate function core/modules/media/src/Entity/Media.php
Media::validateConfigurationForm function core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Media.php
MediaConfigSubscriber::$cacheTagsInvalidator property core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php The cache tags invalidator.
MediaEmbed::validateOptions function core/modules/media/src/Plugin/Filter/MediaEmbed.php Form element validation handler.
MediaEmbedFilterConfigurationUiAddTest::testValidationWhenAdding function core/modules/media/tests/src/FunctionalJavascript/MediaEmbedFilterConfigurationUiAddTest.php @covers \Drupal\media\Hook\MediaHooks::formFilterFormatAddFormAlter
@dataProvider providerTestValidations
MediaEmbedFilterConfigurationUiEditTest::testValidationWhenEditing function core/modules/media/tests/src/FunctionalJavascript/MediaEmbedFilterConfigurationUiEditTest.php @covers \Drupal\media\Hook\MediaHooks::formFilterFormatEditFormAlter
@dataProvider providerTestValidations
MediaEmbedFilterTestBase::providerTestValidations function core/modules/media/tests/src/FunctionalJavascript/MediaEmbedFilterTestBase.php Data provider for testing validation when adding and editing media embeds.
MediaLibraryAddFormTest::testFormStateValidation function core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php Tests the validation of the library state in the media library add form.
MediaLibraryAddFormTest::testSelectedTypeValidation function core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php Tests the validation of the selected type in the media library add form.
MediaLibraryInceptionWidget::elementValidate function core/modules/media_library/tests/modules/media_library_test_widget/src/Plugin/Field/FieldWidget/MediaLibraryInceptionWidget.php
MediaLibrarySelectForm::viewsFormValidate function core/modules/media_library/src/Plugin/views/field/MediaLibrarySelectForm.php
MediaLibraryState::isValidHash function core/modules/media_library/src/MediaLibraryState.php Validate a hash for the state object.
MediaLibraryState::validateRequiredParameters function core/modules/media_library/src/MediaLibraryState.php Validates the required parameters for a new MediaLibraryState object.
MediaLibraryWidget::validateItems function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php Validates that newly selected items can be added to the widget.
MediaLibraryWidget::validateRequired function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php Validates whether the widget is required and contains values.
MediaMappingsConstraint::$invalidMappingMessage property core/modules/media/src/Plugin/Validation/Constraint/MediaMappingsConstraint.php The error message if source is used in media mapping.
MediaMappingsConstraintValidator class core/modules/media/src/Plugin/Validation/Constraint/MediaMappingsConstraintValidator.php Validates media mappings.
MediaMappingsConstraintValidator.php file core/modules/media/src/Plugin/Validation/Constraint/MediaMappingsConstraintValidator.php
MediaMappingsConstraintValidator::validate function core/modules/media/src/Plugin/Validation/Constraint/MediaMappingsConstraintValidator.php
MediaMappingsConstraintValidatorTest class core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php @coversDefaultClass \Drupal\media\Plugin\Validation\Constraint\MediaMappingsConstraintValidator
MediaMappingsConstraintValidatorTest.php file core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php
MediaMappingsConstraintValidatorTest::$modules property core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php
MediaMappingsConstraintValidatorTest::setUp function core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php
MediaMappingsConstraintValidatorTest::testMediaMappingSource function core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php @covers ::validate
MediaSelection::validateReferenceableNewEntities function core/modules/media/src/Plugin/EntityReferenceSelection/MediaSelection.php
MediaSourceBase::validateConfigurationForm function core/modules/media/src/MediaSourceBase.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
MediaTypeForm::validateForm function core/modules/media/src/MediaTypeForm.php
MediaTypeValidationTest class core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php Tests validation of media_type entities.
MediaTypeValidationTest.php file core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php
MediaTypeValidationTest::$modules property core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php
MediaTypeValidationTest::setUp function core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php
MediaTypeValidationTest::testImmutableProperties function core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php
MediaTypeValidationTest::testMediaSourceIsValidated function core/modules/media/tests/src/Kernel/MediaTypeValidationTest.php Tests that the media source plugin's existence is validated.
media_filter_format_edit_form_validate function core/modules/media/media.module Validate callback to ensure filter order and allowed_html are compatible.
MemoryBackend::invalidate function core/lib/Drupal/Core/Cache/MemoryBackend.php Marks a cache item as invalid.
MemoryBackend::invalidateAll function core/lib/Drupal/Core/Cache/MemoryBackend.php Marks all cache items as invalid.

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