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
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.
ImageTestBase::providerAltTextRequired function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
ImageTestBase::testAltTextRequired function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.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 @todo Add method return type declaration.
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.
install_recipe_required_modules function core/includes/install.core.inc Installs required modules prior to applying a recipe via the installer.
LangcodeRequiredIfTranslatableValuesConstraint class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php
LangcodeRequiredIfTranslatableValuesConstraint.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php

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