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
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.
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.
FormTestDetailsContainsRequiredTextfieldForm class core/modules/system/tests/modules/form_test/src/Form/FormTestDetailsContainsRequiredTextfieldForm.php Builds a form to test a required textfield within a details element.
FormTestDetailsContainsRequiredTextfieldForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestDetailsContainsRequiredTextfieldForm.php
FormTestDetailsContainsRequiredTextfieldForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestDetailsContainsRequiredTextfieldForm.php Form constructor.
FormTestDetailsContainsRequiredTextfieldForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestDetailsContainsRequiredTextfieldForm.php Returns a unique string identifying the form.
FormTestDetailsContainsRequiredTextfieldForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestDetailsContainsRequiredTextfieldForm.php Form submission handler.
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.
FormTestValidateRequiredNoTitleForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredNoTitleForm.php
FormTestValidateRequiredNoTitleForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredNoTitleForm.php Form constructor.
FormTestValidateRequiredNoTitleForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredNoTitleForm.php Returns a unique string identifying the form.
FormTestValidateRequiredNoTitleForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestValidateRequiredNoTitleForm.php Form submission handler.
FormValidator::performRequiredValidation function core/lib/Drupal/Core/Form/FormValidator.php Performs validation of elements that are not subject to limited validation.
FormValidatorTest::providerTestPerformRequiredValidation function core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
FormValidatorTest::providerTestRequiredErrorMessage function core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
FormValidatorTest::testPerformRequiredValidation function core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php @covers ::performRequiredValidation
FormValidatorTest::testRequiredErrorMessage function core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php @covers ::doValidateForm
ImageFieldValidateTest::testRequiredAttributes function core/modules/image/tests/src/Functional/ImageFieldValidateTest.php Tests that required alt/title fields gets validated right.
ImageTestProviderTrait::providerAltTextRequired function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestProviderTrait.php
ImageTestProviderTrait::testAltTextRequired function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestProviderTrait.php Tests that alt text is required for images.
ImageWidget::validateRequiredFields function core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php Validate callback for alt and title field, if the user wants them required.
ImmutablePropertiesConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ImmutablePropertiesConstraint.php
InfoParserDynamic::getRequiredKeys function core/lib/Drupal/Core/Extension/InfoParserDynamic.php Returns an array of keys required to exist in .info.yml file.
InputRequired class core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Exposed form plugin that provides an exposed form with required input.
InputRequired.php file core/modules/views/src/Plugin/views/exposed_form/InputRequired.php
InputRequired::buildOptionsForm function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Provide a form to edit options for this plugin.
InputRequired::defineOptions function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Information about options for all kinds of purposes will be held here.
InputRequired::exposedFilterApplied function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php
InputRequired::preRender function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Runs before the view is rendered.
InputRequired::query function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Add anything to the query that we might need to.
InputRequired::submitOptionsForm function core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Handle any special handling on the validate form.
InstallTest::testRequiredModuleSchemaVersions function core/modules/system/tests/src/Kernel/Module/InstallTest.php Tests recorded schema versions of early installed modules in the installer.

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