Search for getDefault

  1. Search 7.x for getDefault
  2. Search 8.9.x for getDefault
  3. Search 10.3.x for getDefault
  4. Search 11.x for getDefault
  5. Other projects
Title Object type File name Summary
EntityListBuilder::getDefaultOperations function core/lib/Drupal/Core/Entity/EntityListBuilder.php Gets this list's default operations.
EntityOwnerTrait::getDefaultEntityOwner function core/modules/user/src/EntityOwnerTrait.php Default value callback for 'owner' base field.
EntityTypeConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraint.php
EntityViewDisplayEditForm::getDefaultPlugin function core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php Returns the ID of the default widget or formatter plugin for a field type.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
FieldConfigBase::getDefaultValue function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the default value for the field in a newly created entity.
FieldConfigBase::getDefaultValueCallback function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the default value callback for the field.
FieldConfigBase::getDefaultValueLiteral function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the default value literal for the field.
FieldConfigListBuilder::getDefaultOperations function core/modules/field_ui/src/FieldConfigListBuilder.php Gets this list's default operations.
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.
FieldLayoutEntityDisplayTrait::getDefaultRegion function core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::getDefaultRegion().
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.
FilterFormatListBuilder::getDefaultOperations function core/modules/filter/src/FilterFormatListBuilder.php Gets this list's default operations.
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
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.
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.
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.
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 @covers ::getDefaultRevisionId
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 @covers \Drupal\content_moderation\ModerationInformation::getDefaultRevisionId
NodeTypeListBuilder::getDefaultOperations function core/modules/node/src/NodeTypeListBuilder.php Gets this list's default operations.

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