Search for required

  1. Search 7.x for required
  2. Search 9.5.x for required
  3. Search 8.9.x for required
  4. Search 11.x for required
  5. Other projects
Title Object type File name Summary
required_module_uninstall_validator service core/core.services.yml Drupal\Core\Extension\RequiredModuleUninstallValidator
ResourceIdentifier::toResourceIdentifiersWithArityRequired function core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php Creates an array of ResourceIdentifier objects with arity on every value.
SaveUploadTest::testRequired function core/modules/file/tests/src/Functional/SaveUploadTest.php Tests the file_save_upload() function when the field is required.
SchemaCompatibilityChecker::checkRequired function core/modules/sdc/src/Component/SchemaCompatibilityChecker.php Checks that the required properties are compatible.
SchemaCompatibilityChecker::checkRequired function core/lib/Drupal/Core/Theme/Component/SchemaCompatibilityChecker.php Checks that the required properties are compatible.
ShapeItemRequired class core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItemRequired.php Defines the 'shape_required' field type.
ShapeItemRequired.php file core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItemRequired.php
ShapeItemRequired::propertyDefinitions function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItemRequired.php Defines field item properties.
StateFileExistsTest::$stateFileRequired property core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php Modules that should have a migrate_drupal.yml file.
TaggedHandlersPassTest::testIdCollectorProcessRequiredHandlers function core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php Tests a required consumer with no handlers.
TaggedHandlersPassTest::testProcessRequiredHandlers function core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php Tests a required consumer with no handlers.
TestFieldConstraint::getRequiredOptions function core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php
testing_theme_required_blocks.info.yml file core/profiles/testing_themes_blocks/themes/testing_theme_required_blocks/testing_theme_required_blocks.info.yml core/profiles/testing_themes_blocks/themes/testing_theme_required_blocks/testing_theme_required_blocks.info.yml
TestType::getRequiredStates function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/TestType.php Gets the required states of workflow type.
test_another_module_required_by_theme.info.yml file core/modules/system/tests/themes/test_theme_depending_on_modules/test_another_module_required_by_theme/test_another_module_required_by_theme.info.yml core/modules/system/tests/themes/test_theme_depending_on_modules/test_another_module_required_by_theme/test_another_module_required_by_theme.info.yml
test_module_required_by_theme.info.yml file core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.info.yml core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.info.yml
test_module_required_by_theme.module file core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module This file provides testing functionality for update.php.
test_module_required_by_theme_system_info_alter function core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module Implements hook_system_info_alter().
TextareaWithSummaryTest::testTextSummaryRequiredBehavior function core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php Tests that the textSummary behavior is not run for required summary fields.
TextFieldTest::testRequiredLongTextWithFileUpload function core/modules/text/tests/src/Functional/TextFieldTest.php Tests required long text with file upload.
TextSummaryTest::testRequiredSummary function core/modules/text/tests/src/Kernel/TextSummaryTest.php Tests required summary.
ToolbarItemConditionsMetConstraint::$filterRequiredMessage property core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraint.php The violation message when a required filter is missing.
ToolbarItemConditionsMetConstraint::$imageUploadStatusRequiredMessage property core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraint.php The violation message when the required image upload status is not set.
ToolbarItemConditionsMetConstraint::$multipleMissingRequiredPluginMessage property core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraint.php The violation message when >1 required plugin is missing.
ToolbarItemConditionsMetConstraint::$singleMissingRequiredPluginMessage property core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConditionsMetConstraint.php The violation message when 1 required plugin is missing.
ToolbarItemDependencyConstraint::getRequiredOptions function core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemDependencyConstraint.php
UniqueLabelInListConstraint::getRequiredOptions function core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraint.php
UpdateTestBase::SECURITY_UPDATE_REQUIRED constant core/modules/update/tests/src/Functional/UpdateTestBase.php Denotes a security update will be required in the test case.
UserMailRequired class core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php Checks if the user's email address is provided if required.
UserMailRequired.php file core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php
UserMailRequired::$message property core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php Violation message. Use the same message as FormValidator.
UserMailRequiredValidator class core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php Checks if the user's email address is provided if required.
UserMailRequiredValidator.php file core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php
UserMailRequiredValidator::validate function core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
UserMailRequiredValidatorTest class core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php @coversDefaultClass \Drupal\user\Plugin\Validation\Constraint\UserMailRequiredValidator
@group user
UserMailRequiredValidatorTest.php file core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php
UserMailRequiredValidatorTest::createValidator function core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php Creates a validator instance.
UserMailRequiredValidatorTest::providerTestValidate function core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php Data provider for ::testValidate().
UserMailRequiredValidatorTest::testValidate function core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php @covers ::validate
ValidationTest::testCustomRequiredError function core/modules/system/tests/src/Functional/Form/ValidationTest.php Tests #required with custom validation errors.
ValidKeysConstraint::$dynamicMissingRequiredKeyMessage property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php The error message if a dynamically required key is missing.
ValidKeysConstraint::$missingRequiredKeyMessage property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php The error message if a key is missing.
ValidKeysConstraint::getRequiredOptions function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php @todo Add method return type declaration.
ValidKeysConstraintValidatorTest::testBothUnknownAndDynamicallyRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting both unknown and required keys.
ValidKeysConstraintValidatorTest::testDynamicallyRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting missing dynamically required keys.
ValidKeysConstraintValidatorTest::testRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting missing required keys.
ViewValidationTest::testLabelsAreRequired function core/modules/views/tests/src/Kernel/Entity/ViewValidationTest.php @group legacy
WidgetAccessTest::testRequiredFieldNoAccess function core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php Tests the widget with a required field that the user can't access.
WorkflowType::$required_states property core/modules/workflows/src/Attribute/WorkflowType.php States required to exist.
WorkflowType::$required_states property core/modules/workflows/src/Annotation/WorkflowType.php States required to exist.

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