Search for required

  1. Search 7.x for required
  2. Search 8.9.x for required
  3. Search 10.3.x for required
  4. Search 11.x for required
  5. Other projects
Title Object type File name Summary
RequiredStateTestType::defaultConfiguration function core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/RequiredStateTestType.php Gets default configuration for this plugin.
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.
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.
text_post_update_add_required_summary_flag_form_display function core/modules/text/text.post_update.php Update text_with_summary widgets to add summary required flags.
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
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.
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/Annotation/WorkflowType.php States required to exist.
WorkflowTypeBase::getRequiredStates function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Gets the required states of workflow type.
WorkflowTypeInterface::getRequiredStates function core/modules/workflows/src/WorkflowTypeInterface.php Gets the required states of workflow type.

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