Search for required

  1. Search 7.x for required
  2. Search 9.5.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
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
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 Test the input required exposed form type.
ExposedFormTest::testTextInputRequired function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Test 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.
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 a 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.
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

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