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
LangcodeRequiredIfTranslatableValuesConstraint::$missingMessage property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php The error message if this config object is missing a `langcode`.
LangcodeRequiredIfTranslatableValuesConstraint::$superfluousMessage property core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php The error message if this config object contains a superfluous `langcode`.
LangcodeRequiredIfTranslatableValuesConstraintValidator class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php Validates the LangcodeRequiredIfTranslatableValues constraint.
LangcodeRequiredIfTranslatableValuesConstraintValidator.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php
LangcodeRequiredIfTranslatableValuesConstraintValidator::validate function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php
LocaleDefaultConfigStorage::$requiredInstallStorage property core/modules/locale/src/LocaleDefaultConfigStorage.php The storage instance for reading required default configuration data.
Mapping::getRequiredKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all required keys in this mapping.
Mapping::processRequiredKeyFlags function core/lib/Drupal/Core/Config/Schema/Mapping.php Validates optional `requiredKey` flags, guarantees one will be set.
MappingTest::testInvalidRequiredKeyFlag function core/tests/Drupal/KernelTests/Config/Schema/MappingTest.php @testWith [true]
[1]
["true"]
[0]
["false"]
MediaLibraryState::validateRequiredParameters function core/modules/media_library/src/MediaLibraryState.php Validates the required parameters for a new MediaLibraryState object.
MediaLibraryWidget::validateRequired function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php Validates whether the widget is required and contains values.
MigrateValidatableEntityInterface::isEntityValidationRequired function core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php Returns a state of whether an entity needs to be validated before saving.
MigrationProvidersExistTest::testFieldProviderMissingRequiredProperty function core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php Tests a missing required definition.
ModuleExtensionList::ensureRequiredDependencies function core/lib/Drupal/Core/Extension/ModuleExtensionList.php Marks dependencies of required modules as 'required', recursively.
ModuleRequiredByThemesUninstallValidator class core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php Provides a proxy class for \Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator.
ModuleRequiredByThemesUninstallValidator class core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php Ensures modules cannot be uninstalled if enabled themes depend on them.
ModuleRequiredByThemesUninstallValidator.php file core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php
ModuleRequiredByThemesUninstallValidator.php file core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php
ModuleRequiredByThemesUninstallValidator::$container property core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php The service container.
ModuleRequiredByThemesUninstallValidator::$drupalProxyOriginalServiceId property core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php The id of the original proxied service.
ModuleRequiredByThemesUninstallValidator::$moduleExtensionList property core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php The module extension list.
ModuleRequiredByThemesUninstallValidator::$service property core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php The real proxied service, after it was lazy loaded.
ModuleRequiredByThemesUninstallValidator::$themeExtensionList property core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php The theme extension list.
ModuleRequiredByThemesUninstallValidator::getThemesDependingOnModule function core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php Returns themes that depend on a module.
ModuleRequiredByThemesUninstallValidator::lazyLoadItself function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php Lazy loads the real service from the container.
ModuleRequiredByThemesUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php
ModuleRequiredByThemesUninstallValidator::validate function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php Determines the reasons a module can not be uninstalled.
ModuleRequiredByThemesUninstallValidator::validate function core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php Determines the reasons a module can not be uninstalled.
ModuleRequiredByThemesUninstallValidator::validateConfigImport function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php Determines reasons a module can not be uninstalled prior to config import.
ModuleRequiredByThemesUninstallValidator::validateConfigImport function core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php Determines reasons a module can not be uninstalled prior to config import.
ModuleRequiredByThemesUninstallValidator::__construct function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php Constructs a ProxyClass Drupal proxy object.
ModuleRequiredByThemesUninstallValidator::__construct function core/lib/Drupal/Core/Extension/ModuleRequiredByThemesUninstallValidator.php Constructs a new ModuleRequiredByThemesUninstallValidator.
ModuleRequiredByThemesUninstallValidatorTest class core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php @coversDefaultClass \Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator
@group Extension
ModuleRequiredByThemesUninstallValidatorTest.php file core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php
ModuleRequiredByThemesUninstallValidatorTest::$moduleExtensionList property core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php Mock of ModuleExtensionList.
ModuleRequiredByThemesUninstallValidatorTest::$moduleRequiredByThemeUninstallValidator property core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php Instance of ModuleRequiredByThemesUninstallValidator.
ModuleRequiredByThemesUninstallValidatorTest::$themeExtensionList property core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php Mock of ThemeExtensionList.
ModuleRequiredByThemesUninstallValidatorTest::setUp function core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php
ModuleRequiredByThemesUninstallValidatorTest::testValidateNoThemeDependency function core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php @covers ::validate
ModuleRequiredByThemesUninstallValidatorTest::testValidateOneThemeDependency function core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php @covers ::validate
ModuleRequiredByThemesUninstallValidatorTest::testValidateTwoThemeDependencies function core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php @covers ::validate
ModulesListFormWebTest::testRequiredByThemeMessage function core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php Confirm that module 'Required By' descriptions include dependent themes.
module_required_by_themes_uninstall_validator service core/core.services.yml Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator
module_required_test.info.yml file core/modules/system/tests/modules/module_required_test/module_required_test.info.yml core/modules/system/tests/modules/module_required_test/module_required_test.info.yml
module_required_test.module file core/modules/system/tests/modules/module_required_test/module_required_test.module Test module.
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

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