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
AggregatorUpdateTest::testSourceFeedRequired function core/modules/aggregator/tests/src/Functional/Update/AggregatorUpdateTest.php Tests that the 'Source feed' field is required.
AnnotationWithRequiredAttributes class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php Plugin annotation

@Target("ALL")
@Attributes({
@Attribute("value", required = true , type = "string"),
@Attribute("annot", required = true , type =…
AnnotationWithRequiredAttributes.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributes::$annot property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributes::$value property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributes::getAnnot function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributes::getValue function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributes::__construct function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
AnnotationWithRequiredAttributesWithoutContructor class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php Plugin annotation
@Target("ALL");
AnnotationWithRequiredAttributesWithoutContructor.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php
AnnotationWithRequiredAttributesWithoutContructor::$annot property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php @Required
AnnotationWithRequiredAttributesWithoutContructor::$value property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php @Required
BaseFieldDefinition::isStorageRequired function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns whether the field storage is required.
BaseFieldDefinition::setStorageRequired function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets whether the field storage is required.
BaseFieldDefinitionTest::testFieldRequired function core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php Tests required.
BaseFieldDefinitionTest::testFieldStorageRequired function core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php Tests storage required.
BaseThemeRequiredTest class core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php Tests the behavior of the `base theme` key.
BaseThemeRequiredTest.php file core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php
BaseThemeRequiredTest::$modules property core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php Modules to enable.
BaseThemeRequiredTest::$themeInstaller property core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php The theme installer.
BaseThemeRequiredTest::$themeManager property core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php The theme manager.
BaseThemeRequiredTest::setUp function core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php
BaseThemeRequiredTest::testWildWest function core/tests/Drupal/KernelTests/Core/Theme/BaseThemeRequiredTest.php Tests opting out of Stable by setting the base theme to false.
BundleConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
CacheableLengthRequiredHttpException class core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php A cacheable LengthRequiredHttpException.
CacheableLengthRequiredHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php
CacheableLengthRequiredHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php
CacheablePreconditionRequiredHttpException class core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php A cacheable PreconditionRequiredHttpException.
CacheablePreconditionRequiredHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php
CacheablePreconditionRequiredHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php
CommentNameConstraint::$messageRequired property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Message shown when an admin changes the comment-author to an invalid user.
CommentUpdateTest::testCommentEntityTypeAndFieldNameRequired function core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php Tests whether the 'entity_type' and 'field_name' columns are required.
ComplexDataConstraint::getRequiredOptions function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php
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.
ContentEntityType::$requiredRevisionMetadataKeys property core/lib/Drupal/Core/Entity/ContentEntityType.php The required revision metadata keys.
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 Determines whether the context is required.
ContextDefinition::setRequired function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Sets whether the data is required.
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 Determines whether a data value is required.
DataDefinition::setRequired function core/lib/Drupal/Core/TypedData/DataDefinition.php Sets whether the data is required.

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