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
module_required_test_system_info_alter function core/modules/system/tests/modules/module_required_test/module_required_test.module Implements hook_system_info_alter().
OptionsFieldUITest::testRequiredPropertyForAllowedValuesList function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Confirms the allowed value list is a required field.
OptionsWidgetBase::$required property core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php Tracks whether the field is required.
OptionsWidgetsTest::testSelectListRequiredErrorAttribute function core/modules/options/tests/src/Functional/OptionsWidgetsTest.php Tests the '#required_error' attribute for the select list.
PluginExistsConstraint::getRequiredOptions function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php
RecipeTest::testImplicitlyRequiredModule function core/tests/Drupal/KernelTests/Core/Recipe/RecipeTest.php
RequiredConfigDependenciesConstraint class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php Checks that config dependencies contain specific types of entities.
RequiredConfigDependenciesConstraint.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php
RequiredConfigDependenciesConstraint::$entityTypes property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php The IDs of entity types that need to exist in config dependencies.
RequiredConfigDependenciesConstraint::$message property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php The error message.
RequiredConfigDependenciesConstraint::getDefaultOption function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php
RequiredConfigDependenciesConstraint::getRequiredOptions function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraint.php
RequiredConfigDependenciesConstraintValidator class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php Validates the RequiredConfigDependencies constraint.
RequiredConfigDependenciesConstraintValidator.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php
RequiredConfigDependenciesConstraintValidator::$entityTypeManager property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php The entity type manager service.
RequiredConfigDependenciesConstraintValidator::create function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php Instantiates a new instance of this class.
RequiredConfigDependenciesConstraintValidator::validate function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php
RequiredConfigDependenciesConstraintValidator::__construct function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/RequiredConfigDependenciesConstraintValidator.php Constructs a RequiredConfigDependenciesConstraintValidator object.
RequiredFieldStorageDefinitionInterface interface core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php Defines an interface for required field storage definitions.
RequiredFieldStorageDefinitionInterface.php file core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php
RequiredFieldStorageDefinitionInterface::isStorageRequired function core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php Returns whether the field storage is required.
RequiredModuleUninstallValidator class core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php Provides a proxy class for \Drupal\Core\Extension\RequiredModuleUninstallValidator.
RequiredModuleUninstallValidator class core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php Ensures that required modules cannot be uninstalled.
RequiredModuleUninstallValidator.php file core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php
RequiredModuleUninstallValidator.php file core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php
RequiredModuleUninstallValidator::$container property core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php The service container.
RequiredModuleUninstallValidator::$drupalProxyOriginalServiceId property core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php The id of the original proxied service.
RequiredModuleUninstallValidator::$moduleExtensionList property core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php The module extension list.
RequiredModuleUninstallValidator::$service property core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php The real proxied service, after it was lazy loaded.
RequiredModuleUninstallValidator::getModuleInfoByModule function core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php Returns the module info for a specific module.
RequiredModuleUninstallValidator::lazyLoadItself function core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php Lazy loads the real service from the container.
RequiredModuleUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php
RequiredModuleUninstallValidator::validate function core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php Determines the reasons a module can not be uninstalled.
RequiredModuleUninstallValidator::validate function core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php Determines the reasons a module can not be uninstalled.
RequiredModuleUninstallValidator::__construct function core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php Constructs a ProxyClass Drupal proxy object.
RequiredModuleUninstallValidator::__construct function core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php Constructs a new RequiredModuleUninstallValidator.
RequiredModuleUninstallValidatorTest class core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php @coversDefaultClass \Drupal\Core\Extension\RequiredModuleUninstallValidator
@group Extension
RequiredModuleUninstallValidatorTest.php file core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
RequiredModuleUninstallValidatorTest::$uninstallValidator property core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
RequiredModuleUninstallValidatorTest::setUp function core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
RequiredModuleUninstallValidatorTest::testValidateNoModule function core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php @covers ::validate
RequiredModuleUninstallValidatorTest::testValidateNotRequired function core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php @covers ::validate
RequiredModuleUninstallValidatorTest::testValidateRequired function core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php @covers ::validate
RequiredStateMissingException class core/modules/workflows/src/Exception/RequiredStateMissingException.php Indicates that a workflow does not contain a required state.
RequiredStateMissingException.php file core/modules/workflows/src/Exception/RequiredStateMissingException.php
RequiredStatesTest class core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Tests Workflow type's required states and configuration initialization.
RequiredStatesTest.php file core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php
RequiredStatesTest::$modules property core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Modules to install.
RequiredStatesTest::testChangeRequiredStateAPI function core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php Ensures that initialized configuration can be changed.
RequiredStatesTest::testDeleteRequiredStateAPI function core/modules/workflows/tests/src/Kernel/RequiredStatesTest.php @covers \Drupal\workflows\Entity\Workflow::preSave

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