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 11.x for getDefault
  5. Other projects
Title Object type File name Summary
ActionListBuilder::getDefaultOperations function core/modules/action/src/ActionListBuilder.php Gets this list's default operations.
ArgumentPluginBase::getDefaultArgument function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Get a default argument, if available.
BaseFieldDefinition::getDefaultValue function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the default value for the field in a newly created entity.
BaseFieldDefinition::getDefaultValueCallback function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the default value callback for the field.
BaseFieldDefinition::getDefaultValueLiteral function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the default value literal for the field.
BlockContentTypeListBuilder::getDefaultOperations function core/modules/block_content/src/BlockContentTypeListBuilder.php Gets this list's default operations.
BlockListBuilder::getDefaultOperations function core/modules/block/src/BlockListBuilder.php Gets this list's default operations.
BrowserTestBase::getDefaultDriverInstance function core/tests/Drupal/Tests/BrowserTestBase.php Gets an instance of the default Mink driver.
BrowserTestBaseTest::testGetDefaultDriveInstance function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
BundleConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
CachePluginBase::getDefaultCacheMaxAge function core/modules/views/src/Plugin/views/cache/CachePluginBase.php Returns the default cache max age.
CKEditor5::getDefaultSettings function core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php Returns the default settings for this configurable text editor.
Comment::getDefaultHostname function core/modules/comment/src/Entity/Comment.php Returns the default value for entity hostname base field.
Comment::getDefaultStatus function core/modules/comment/src/Entity/Comment.php Default value callback for 'status' base field definition.
CommentCacheTagsTest::getDefaultCacheContexts function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php Gets the default cache contexts for rendered entities.
CommentHostnameTest::testGetDefaultHostname function core/modules/comment/tests/src/Kernel/CommentHostnameTest.php Tests hostname default value callback.
CommentTypeListBuilder::getDefaultOperations function core/modules/comment/src/CommentTypeListBuilder.php Gets this list's default operations.
ComplexDataConstraint::getDefaultOption function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php @todo Add method return type declaration.
ConfigEntityListBuilder::getDefaultOperations function core/lib/Drupal/Core/Config/Entity/ConfigEntityListBuilder.php Gets this list's default operations.
ConfigInstaller::getDefaultConfigDirectory function core/lib/Drupal/Core/Config/ConfigInstaller.php Gets an extension's default configuration directory.
ConfigurableLanguage::getDefaultLangcode function core/modules/language/src/Entity/ConfigurableLanguage.php Gets the default langcode.
ConfigurableLanguageResourceTestBase::testGetDefaultConfig function core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php Tests a GET request for a default config entity, which has a _core key.
ContactLink::getDefaultLabel function core/modules/contact/src/Plugin/views/field/ContactLink.php Returns the default label for this link.
ContentLanguageSettings::getDefaultLangcode function core/modules/language/src/Entity/ContentLanguageSettings.php Gets the default language code.
ContentLanguageSettingsInterface::getDefaultLangcode function core/modules/language/src/ContentLanguageSettingsInterface.php Gets the default language code.
ContentTranslationHandler::getDefaultOwnerId function core/modules/content_translation/src/ContentTranslationHandler.php Default value callback for the owner base field definition.
ContextDefinition::getDefaultValue function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets the default value for this context definition.
ContextDefinitionInterface::getDefaultValue function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Gets the default value for this context definition.
Date::getDefaultArgument function core/modules/views/src/Plugin/views/argument/Date.php Gets the date default argument, formatted appropriately for this argument.
DbDumpApplication::getDefaultCommands function core/lib/Drupal/Core/Command/DbDumpApplication.php
DbToolsApplication::getDefaultCommands function core/lib/Drupal/Core/Command/DbToolsApplication.php
DefaultLanguageItem::getDefaultLangcode function core/modules/language/src/DefaultLanguageItem.php Provides default language code of given entity.
EditorBase::getDefaultSettings function core/modules/editor/src/Plugin/EditorBase.php Returns the default settings for this configurable text editor.
EditorPluginInterface::getDefaultSettings function core/modules/editor/src/Plugin/EditorPluginInterface.php Returns the default settings for this configurable text editor.
EntityBundleExistsConstraint::getDefaultOption function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraint.php @todo Add method return type declaration.
EntityDisplayBase::getDefaultRegion function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets the default region.
EntityDisplayFormBase::getDefaultPlugin function core/modules/field_ui/src/Form/EntityDisplayFormBase.php Returns the ID of the default widget or formatter plugin for a field type.
EntityDisplayWithLayoutInterface::getDefaultRegion function core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php Gets the default region.
EntityFormDisplayEditForm::getDefaultPlugin function core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php Returns the ID of the default widget or formatter plugin for a field type.
EntityHasFieldConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
EntityLink::getDefaultLabel function core/modules/views/src/Plugin/views/field/EntityLink.php Returns the default label for this link.
EntityLinkDelete::getDefaultLabel function core/modules/views/src/Plugin/views/field/EntityLinkDelete.php Returns the default label for this link.
EntityLinkEdit::getDefaultLabel function core/modules/views/src/Plugin/views/field/EntityLinkEdit.php Returns the default label for this link.
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.
ExtensionExistsConstraint::getDefaultOption function core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraint.php
FieldConfigBase::getDefaultValue function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the default value for the field in a newly created entity.

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