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 10.3.x for required
  5. Other projects
Title Object type File name Summary
ContentEntityBase::$validationRequired property core/lib/Drupal/Core/Entity/ContentEntityBase.php Whether entity validation is required before saving the entity.
ContentEntityBase::isValidationRequired function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::setValidationRequired function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBaseUnitTest::testRequiredValidation function core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php Tests required validation.
ContextDefinition::$isRequired property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Determines whether a data value is required.
ContextDefinition::isRequired function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
ContextDefinition::setRequired function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
ContextDefinitionInterface::isRequired function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Determines whether the context is required.
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
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
EditorValidationTest::testImageUploadSettingsAreDynamicallyRequired function core/modules/editor/tests/src/Kernel/EditorValidationTest.php Test validation when dynamically changing image upload settings.
EditorValidationTest::testRequiredPropertyKeysMissing function core/modules/editor/tests/src/Kernel/EditorValidationTest.php
EditorValidationTest::testRequiredPropertyValuesMissing function core/modules/editor/tests/src/Kernel/EditorValidationTest.php
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
EntityContentBase::isEntityValidationRequired function core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
EntityHasFieldConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php
EntityReference::validateRequired function core/modules/views/src/Plugin/views/filter/EntityReference.php Validates that a required field for a sub handler has a value.
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
FieldConfigBase::setRequired function core/lib/Drupal/Core/Field/FieldConfigBase.php
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
FieldConfigValidationTest::testRequiredPropertyValuesMissing function core/modules/field/tests/src/Kernel/Entity/FieldConfigValidationTest.php
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.

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