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
ContextDefinitionInterface::setRequired function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets whether the data is required.
ContextHandlerTest::testApplyContextMappingMissingNotRequired function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::applyContextMapping
ContextHandlerTest::testApplyContextMappingMissingRequired function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::applyContextMapping
ContextHandlerTest::testApplyContextMappingNoValueNonRequired function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::applyContextMapping
ContextHandlerTest::testApplyContextMappingNoValueRequired function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::applyContextMapping
CreateTestContentEntitiesTrait::getRequiredModules function core/modules/migrate_drupal/tests/src/Traits/CreateTestContentEntitiesTrait.php Gets required modules.
DataDefinition::isRequired function core/lib/Drupal/Core/TypedData/DataDefinition.php Determines whether a data value is required.
DataDefinition::setRequired function core/lib/Drupal/Core/TypedData/DataDefinition.php Sets whether the data is required.
DataDefinitionInterface::isRequired function core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php Determines whether a data value is required.
DefaultPluginManagerTest::testGetDefinitionsWithoutRequiredInterface function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php Tests plugins without a required interface.
DocParserTest::testAnnotationWithRequiredAttributes function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DocParserTest::testAnnotationWithRequiredAttributesWithoutContructor function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DrupalCoreComposer::getRequireDev function composer/Generator/Util/DrupalCoreComposer.php Return the "require-dev" section from root or core composer.json file.
DRUPAL_REQUIRED constant core/modules/system/system.module Required option on forms and settings.
EditorValidationTest::$propertiesWithRequiredKeys property core/modules/editor/tests/src/Kernel/EditorValidationTest.php The config entity mapping properties with >=1 required keys.
EditorValidationTest::testImageUploadSettingsAreDynamicallyRequired function core/modules/editor/tests/src/Kernel/EditorValidationTest.php `image_upload.status = TRUE` must cause additional keys to be required.
EditorValidationTest::testRequiredPropertyKeysMissing function core/modules/editor/tests/src/Kernel/EditorValidationTest.php A property that is required must have a value (i.e. not NULL).
EditorValidationTest::testRequiredPropertyValuesMissing function core/modules/editor/tests/src/Kernel/EditorValidationTest.php A property that is required must have a value (i.e. not NULL).
ElementTest::testRequiredFieldsetsAndDetails function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests the #required property on details and fieldset elements.
EntityBundleExistsConstraint::getRequiredOptions function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraint.php @todo Add method return type declaration.
EntityContentBase::isEntityValidationRequired function core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php Returns a state of whether an entity needs to be validated before saving.
EntityHasFieldConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
EntityReferenceWidgetTest::testRequiredMediaField function core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php Tests saving a required media library field.
EntityTypeConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraint.php
ExposedFormTest::testInputRequired function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Tests the input required exposed form type.
ExposedFormTest::testTextInputRequired function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Tests the "on demand text" for the input required exposed form type.
ExtensionExistsConstraint::getRequiredOptions function core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraint.php
FieldableEntityInterface::isValidationRequired function core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Checks whether entity validation is required before saving the entity.
FieldableEntityInterface::setValidationRequired function core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Sets whether entity validation is required before saving the entity.
FieldConfigBase::$required property core/lib/Drupal/Core/Field/FieldConfigBase.php Flag indicating whether the field is required.
FieldConfigBase::isRequired function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns whether the field can be empty.
FieldConfigBase::setRequired function core/lib/Drupal/Core/Field/FieldConfigBase.php Sets whether the field can be empty.
FieldConfigEditForm::hasAnyRequired function core/modules/field_ui/src/Form/FieldConfigEditForm.php A function to check if element contains any required elements.
FieldConfigEditFormTest::providerRequired function core/modules/field_ui/tests/src/Unit/FieldConfigEditFormTest.php Provides test cases with required and optional elements.
FieldConfigEditFormTest::testHasAnyRequired function core/modules/field_ui/tests/src/Unit/FieldConfigEditFormTest.php @covers ::hasAnyRequired
FieldConfigInterface::setRequired function core/lib/Drupal/Core/Field/FieldConfigInterface.php Sets whether the field can be empty.
FieldConfigValidationTest::testRequiredPropertyKeysMissing function core/modules/field/tests/src/Kernel/Entity/FieldConfigValidationTest.php A property that is required must have a value (i.e. not NULL).
FieldConfigValidationTest::testRequiredPropertyValuesMissing function core/modules/field/tests/src/Kernel/Entity/FieldConfigValidationTest.php A property that is required must have a value (i.e. not NULL).
FieldDefinitionInterface::isRequired function core/lib/Drupal/Core/Field/FieldDefinitionInterface.php Returns whether the field can be empty.
FieldDefinitionTest::testFieldRequired function core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php Tests required.
FileFieldValidateTest::testRequired function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests the required property on file fields.
FileRequiredTestForm class core/modules/file/tests/file_test/src/Form/FileRequiredTestForm.php File required test form class.
FileRequiredTestForm.php file core/modules/file/tests/file_test/src/Form/FileRequiredTestForm.php
FileRequiredTestForm::buildForm function core/modules/file/tests/file_test/src/Form/FileRequiredTestForm.php Form constructor.
FileRequiredTestForm::getFormId function core/modules/file/tests/file_test/src/Form/FileRequiredTestForm.php Returns a unique string identifying the form.
FilterFormTest::assertRequiredSelectAndOptions function core/modules/filter/tests/src/Functional/FilterFormTest.php Asserts that there is a select element with the given ID that is required.
FilterPluginBase::$always_required property core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
FormGroupingElementsTest::testDetailsContainsRequiredTextfield function core/tests/Drupal/FunctionalJavascriptTests/Core/Form/FormGroupingElementsTest.php Tests form submit with a required field in closed details element.
FormGroupingElementsTest::testDetailsContainsRequiredTextfieldAjaxForm function core/tests/Drupal/FunctionalJavascriptTests/Core/Form/FormGroupingElementsTest.php Tests required field in closed details element with ajax form.
FormTest::testFieldFormMultivalueWithRequiredRadio function core/modules/field/tests/src/Functional/FormTest.php Tests widget handling of multiple required radios.

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