Search for setDefault

  1. Search 7.x for setDefault
  2. Search 9.5.x for setDefault
  3. Search 10.3.x for setDefault
  4. Search 11.x for setDefault
  5. Other projects
Title Object type File name Summary
BaseFieldDefinition::setDefaultValue function core/lib/Drupal/Core/Field/BaseFieldDefinition.php
BaseFieldDefinition::setDefaultValueCallback function core/lib/Drupal/Core/Field/BaseFieldDefinition.php
ContentEntityBase::setDefaultLangcode function core/lib/Drupal/Core/Entity/ContentEntityBase.php Populates the local cache for the default language code.
ContentLanguageSettings::setDefaultLangcode function core/modules/language/src/Entity/ContentLanguageSettings.php Sets the default language code.
ContentLanguageSettingsInterface::setDefaultLangcode function core/modules/language/src/ContentLanguageSettingsInterface.php Sets the default language code.
ContextDefinition::setDefaultValue function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Sets the default data value.
ContextDefinitionInterface::setDefaultValue function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the default data value.
DatabaseLegacyTest::testDbFieldSetDefault function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_field_set_default() function.
DateTimePlus::setDefaultDateTime function core/lib/Drupal/Component/Datetime/DateTimePlus.php Sets the default time for an object built from date-only data.
FieldConfigBase::setDefaultValue function core/lib/Drupal/Core/Field/FieldConfigBase.php Sets a default value.
FieldConfigBase::setDefaultValueCallback function core/lib/Drupal/Core/Field/FieldConfigBase.php Sets a custom default value callback.
FieldConfigInterface::setDefaultValue function core/lib/Drupal/Core/Field/FieldConfigInterface.php Sets a default value.
FieldConfigInterface::setDefaultValueCallback function core/lib/Drupal/Core/Field/FieldConfigInterface.php Sets a custom default value callback.
FieldDefinition::setDefaultValue function core/lib/Drupal/Core/Field/FieldDefinition.php Set a default value for the field.
FieldDefinition::setDefaultValueCallback function core/lib/Drupal/Core/Field/FieldDefinition.php Set the default value callback for the field.
LayoutDefinition::setDefaultRegion function core/lib/Drupal/Core/Layout/LayoutDefinition.php Sets the default region.
LegacyThemeHandlerTest::testSetDefault function core/tests/Drupal/KernelTests/Core/Extension/LegacyThemeHandlerTest.php Tests that a deprecation error is thrown when calling ::setDefault.
MigrateDefaultLanguageTest::setDefaultLanguage function core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php Helper method to test the migration.
MigrateDefaultLanguageTest::setDefaultLanguage function core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php Helper method to test the migration.
Schema::fieldSetDefault function core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php Set the default value for a field.
Schema::fieldSetDefault function core/lib/Drupal/Core/Database/Driver/mysql/Schema.php Set the default value for a field.
Schema::fieldSetDefault function core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php Set the default value for a field.
Schema::fieldSetDefault function core/lib/Drupal/Core/Database/Schema.php Set the default value for a field.
SearchConfigSettingsFormTest::setDefaultThroughUi function core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php Sets a search page as the default in the UI.
SearchPageRepository::setDefaultSearchPage function core/modules/search/src/SearchPageRepository.php Sets a given search page as the default.
SearchPageRepositoryInterface::setDefaultSearchPage function core/modules/search/src/SearchPageRepositoryInterface.php Sets a given search page as the default.
SearchPageRepositoryTest::testSetDefaultSearchPage function core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php Tests the setDefaultSearchPage() method.
ThemeController::setDefaultTheme function core/modules/system/src/Controller/ThemeController.php Set the default theme.
ThemeHandler::setDefault function core/lib/Drupal/Core/Extension/ThemeHandler.php Sets a new default theme.
ThemeHandlerInterface::setDefault function core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php Sets a new default theme.
TimeZoneResolver::setDefaultTimeZone function core/modules/system/src/TimeZoneResolver.php Sets the default time zone.
TranslationManager::setDefaultLangcode function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Sets the default langcode.
WizardPluginBase::setDefaultOptions function core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php Sets options for a display and makes them the default options if possible.

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