Search for getDefault

  1. Search 7.x for getDefault
  2. Search 9.5.x for getDefault
  3. Search 8.9.x for getDefault
  4. Search 10.3.x for getDefault
  5. Search 11.x for getDefault
  6. Other projects
Title Object type File name Summary
FieldDefinition::getDefaultValue function core/lib/Drupal/Core/Field/FieldDefinition.php Returns the default value for the field in a newly created entity.
FieldDefinition::getDefaultValueCallback function core/lib/Drupal/Core/Field/FieldDefinition.php Returns the default value callback for the field.
FieldDefinition::getDefaultValueLiteral function core/lib/Drupal/Core/Field/FieldDefinition.php Returns the default value literal for the field.
FieldDefinitionInterface::getDefaultValue function core/lib/Drupal/Core/Field/FieldDefinitionInterface.php Returns the default value for the field in a newly created entity.
FieldDefinitionInterface::getDefaultValueCallback function core/lib/Drupal/Core/Field/FieldDefinitionInterface.php Returns the default value callback for the field.
FieldDefinitionInterface::getDefaultValueLiteral function core/lib/Drupal/Core/Field/FieldDefinitionInterface.php Returns the default value literal for the field.
FieldTypePluginManager::getDefaultFieldSettings function core/lib/Drupal/Core/Field/FieldTypePluginManager.php Returns the default field-level settings for a field type.
FieldTypePluginManager::getDefaultStorageSettings function core/lib/Drupal/Core/Field/FieldTypePluginManager.php Returns the default storage-level settings for a field type.
FieldTypePluginManagerInterface::getDefaultFieldSettings function core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php Returns the default field-level settings for a field type.
FieldTypePluginManagerInterface::getDefaultStorageSettings function core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php Returns the default storage-level settings for a field type.
File::getDefaultEntityOwner function core/modules/file/src/Entity/File.php Default value callback for 'owner' base field.
FileFieldWidgetClaroThemeTest::testWidgetDefaultVisibilitySettings function core/modules/file/tests/src/FunctionalJavascript/FileFieldWidgetClaroThemeTest.php Tests that the field widget visibility settings are respected on the form.
FilterFormatListBuilder::getDefaultOperations function core/modules/filter/src/FilterFormatListBuilder.php Gets this list's default operations.
FilterFormatRepository::getDefaultFormat function core/modules/filter/src/FilterFormatRepository.php
FilterFormatRepositoryInterface::getDefaultFormat function core/modules/filter/src/FilterFormatRepositoryInterface.php Returns the default text format for a particular user.
FilterFormatRepositoryTest::testGetDefaultFormatWithAccount function core/modules/filter/tests/src/Kernel/FilterFormatRepositoryTest.php @legacy-covers ::getDefaultFormat
FormatterPluginManager::getDefaultSettings function core/lib/Drupal/Core/Field/FormatterPluginManager.php Returns the default settings of a field formatter.
GenerateProxyClassApplication::getDefaultCommands function core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
HttpKernelUiHelperTrait::getDefaultDriverInstance function core/tests/Drupal/Tests/HttpKernelUiHelperTrait.php Gets an instance of the default Mink driver.
ImageStyleListBuilder::getDefaultOperations function core/modules/image/src/ImageStyleListBuilder.php Gets this list's default operations.
ImageToolkitManager::getDefaultToolkit function core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php Gets the default image toolkit.
ImageToolkitManager::getDefaultToolkitId function core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php Gets the default image toolkit ID.
InputConfigurator::getDefaultValue function core/lib/Drupal/Core/Recipe/InputConfigurator.php Returns the default value for an input definition.
Language::getDefaultLangcode function core/lib/Drupal/Core/Language/Language.php Gets the default langcode.
LanguageConfiguration::getDefaultOptions function core/modules/language/src/Element/LanguageConfiguration.php Returns the default options for the language configuration form element.
LanguageConfigurationElementTest::getDefaultLangcode function core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php Returns the default language code for a given entity type and bundle.
LanguageManager::getDefaultLanguage function core/lib/Drupal/Core/Language/LanguageManager.php Returns a language object representing the site's default language.
LanguageManager::getDefaultLockedLanguages function core/lib/Drupal/Core/Language/LanguageManager.php Returns a list of the default locked languages.
LanguageManagerInterface::getDefaultLanguage function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns a language object representing the site's default language.
LanguageManagerInterface::getDefaultLockedLanguages function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns a list of the default locked languages.
LanguageServiceProvider::getDefaultLanguageValues function core/modules/language/src/LanguageServiceProvider.php Gets the default language values.
LayoutBuilderEntityViewDisplay::getDefaultRegion function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Gets the default region.
LayoutBuilderEntityViewDisplay::getDefaultSection function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Gets a default section.
LayoutDefinition::getDefaultRegion function core/lib/Drupal/Core/Layout/LayoutDefinition.php Gets the default region.
LinkApprove::getDefaultLabel function core/modules/comment/src/Plugin/views/field/LinkApprove.php Returns the default label for this link.
LinkBase::getDefaultLabel function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the default label for this link.
LinkReply::getDefaultLabel function core/modules/comment/src/Plugin/views/field/LinkReply.php Returns the default label for this link.
LocaleConfigManager::getDefaultConfigLangcode function core/modules/locale/src/LocaleConfigManager.php Returns the original language code for this shipped configuration.
LocaleConfigManagerTest::testGetDefaultConfigLangcode function core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php Tests getDefaultConfigLangcode().
Media::getDefaultThumbnailUri function core/modules/media/src/Entity/Media.php Returns the URI of the default thumbnail.
MenuLinkListBuilder::getDefaultOperations function core/modules/menu_link_content/src/MenuLinkListBuilder.php Gets this list's default operations.
MenuListBuilder::getDefaultOperations function core/modules/menu_ui/src/MenuListBuilder.php Gets this list's default operations.
ModerationInformation::getDefaultRevisionId function core/modules/content_moderation/src/ModerationInformation.php Returns the revision ID of the default revision for the specified entity.
ModerationInformationInterface::getDefaultRevisionId function core/modules/content_moderation/src/ModerationInformationInterface.php Returns the revision ID of the default revision for the specified entity.
ModerationInformationTest::testGetDefaultRevisionId function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php Tests get default revision id.
MultiWidthLayoutBase::getDefaultWidth function core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php Provides a default value for the width options.
NodeAccessTest::testGetDefaultRevisionId function core/modules/content_moderation/tests/src/Kernel/NodeAccessTest.php Tests get default revision id.
NodeTypeListBuilder::getDefaultOperations function core/modules/node/src/NodeTypeListBuilder.php Gets this list's default operations.
OverridesSectionStorage::getDefaultSectionStorage function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Returns the corresponding defaults section storage for this override.
OverridesSectionStorageInterface::getDefaultSectionStorage function core/modules/layout_builder/src/OverridesSectionStorageInterface.php Returns the corresponding defaults section storage for this override.

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