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
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.
drupal_required_modules function core/includes/module.inc Returns an array of modules required by core.
ElementTest::testRequiredFieldsetsAndDetails function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests the #required property on details and fieldset elements.
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
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.
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.
FieldConfigInterface::setRequired function core/lib/Drupal/Core/Field/FieldConfigInterface.php Sets whether the field can be empty.
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 Disable the possibility to allow an exposed input to be optional.
FormTest::testFieldFormMultivalueWithRequiredRadio function core/modules/field/tests/src/Functional/FormTest.php Tests widget handling of multiple required radios.
FormTest::testFieldFormSingleRequired function core/modules/field/tests/src/Functional/FormTest.php
FormTest::testFieldFormUnlimitedRequired function core/modules/field/tests/src/Functional/FormTest.php Tests the position of the required label.
FormTest::testRequiredAttribute function core/modules/system/tests/src/Functional/Form/FormTest.php Tests required attribute.
FormTest::testRequiredCheckboxesRadio function core/modules/system/tests/src/Functional/Form/FormTest.php Tests validation for required checkbox, select, and radio elements.
FormTest::testRequiredFields function core/modules/system/tests/src/Functional/Form/FormTest.php Check several empty values for required forms elements.
FormTest::testRequiredTextfieldNoTitle function core/modules/system/tests/src/Functional/Form/FormTest.php Tests validation for required textfield element without title.
FormTestRequiredAttributeForm class core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Builds a form to test the required attribute.
FormTestRequiredAttributeForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php
FormTestRequiredAttributeForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Form constructor.
FormTestRequiredAttributeForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Returns a unique string identifying the form.
FormTestRequiredAttributeForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Form submission handler.
FormTestValidateRequiredForm class core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php Form constructor to test the #required property.
FormTestValidateRequiredForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php
FormTestValidateRequiredForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php Form constructor.
FormTestValidateRequiredForm::elementValidateRequired function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php
FormTestValidateRequiredForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php Returns a unique string identifying the form.
FormTestValidateRequiredForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredForm.php Form submission handler.
FormTestValidateRequiredNoTitleForm class core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredNoTitleForm.php Form constructor to test the #required property without #title.

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