Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
DateTimeRangeConstantsInterface core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use enum DateTimeRangeDisplayOptions instead.

interface
datetime_type_field_views_data_helper core/modules/datetime/datetime.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::service('datetime.views_helper') ->buildViewsData($field_storage, $data, $column_name); instead.

function
dblog_filters core/modules/dblog/dblog.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\dblog\DbLogFilters::class)->filters() instead.

function
DefaultHtmlRouteProvider::getEntityTypeIdKeyType core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php

in drupal:11.4.0 and is removed from drupal:13.0.0. To determine if an entity type has an integer ID key, use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId().

function 1 1
deprecation_test_function core/modules/system/tests/modules/deprecation_test/deprecation_test.module

in drupal:8.4.0 and is removed from drupal:9.0.0. This is the deprecation message for deprecated_test_function().

function 4
DrupalPinnedDevDependenciesBuilder composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Use drupal/core-dev instead.

class 3
DrupalSqlBase core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 65 63
DRUPAL_DISABLED core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
DRUPAL_OPTIONAL core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
DRUPAL_REQUIRED core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
editor_filter_xss core/modules/editor/editor.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Instead, use the method ::filterXss() from the element.editor service.

function
editor_image_upload_settings_form core/modules/editor/editor.admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\editor\EditorImageUploadSettings::getForm() instead.

function
EmptySource core/modules/migrate_drupal/src/Plugin/migrate/source/EmptySource.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
EntityContentComplete core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 2
EntityPermissionsRouteProviderWithCheck core/modules/user/src/Entity/EntityPermissionsRouteProviderWithCheck.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use EntityPermissionsRouteProvider instead.

class 1
EntityReferenceEntityFormatter::$recursiveRenderDepth core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php

in drupal:11.4.0 and is removed from drupal:13.0.0. EntityViewBuilder #pre_render and #post_render callbacks prevent recursion.

property
EntityReferenceEntityFormatter::RECURSIVE_RENDER_LIMIT core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php

in drupal:11.4.0 and is removed from drupal:13.0.0. EntityViewBuilder #pre_render and #post_render callbacks prevent recursion.

constant
EntityShortcutSet core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
EntityType::$uri_callback core/lib/Drupal/Core/Entity/EntityType.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use link templates or a route provider to specify entity URIs.

property
EntityTypeInterface::getUriCallback core/lib/Drupal/Core/Entity/EntityTypeInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use link templates or a route provider to specify entity URIs.

function 1
EntityTypeInterface::setUriCallback core/lib/Drupal/Core/Entity/EntityTypeInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use link templates or a route provider to specify entity URIs.

function 1
EntityUserRole core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
entity_test_create_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::createBundle() instead.

function
entity_test_delete_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.

function
Error::currentErrorHandler core/lib/Drupal/Core/Utility/Error.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use get_error_handler() instead.

function
ExpectDeprecationTrait core/tests/Drupal/TestTools/Extension/DeprecationBridge/ExpectDeprecationTrait.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->expectUserDeprecationMessage() or $this->expectUserDeprecationMessageMatches() instead.

trait 1
ExpectDeprecationTrait::expectDeprecation core/tests/Drupal/TestTools/Extension/DeprecationBridge/ExpectDeprecationTrait.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->expectUserDeprecationMessage() or $this->expectUserDeprecationMessageMatches() instead.

function 2
FieldBundle core/modules/field/src/Plugin/migrate/process/d7/FieldBundle.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldFile core/modules/file/src/Plugin/migrate/process/d6/FieldFile.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldFormatterSettingsDefaults core/modules/field/src/Plugin/migrate/process/d6/FieldFormatterSettingsDefaults.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
Fieldgroup core/lib/Drupal/Core/Render/Element/Fieldgroup.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\Fieldset instead.

class
FieldInstanceDefaults core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceDefaults.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldInstanceDefaults core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceDefaults.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldInstanceOptionTranslation core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceOptionTranslation.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldInstanceOptionTranslation core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceOptionTranslation.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldInstanceSettings core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceSettings.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldInstanceSettings core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceSettings.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldInstanceWidgetSettings core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldLink core/modules/link/src/Plugin/migrate/process/FieldLink.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldOptionTranslation core/modules/field/src/Plugin/migrate/process/d6/FieldOptionTranslation.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldOptionTranslation core/modules/field/src/Plugin/migrate/process/d7/FieldOptionTranslation.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldSettings core/modules/field/src/Plugin/migrate/process/d6/FieldSettings.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldSettings core/modules/field/src/Plugin/migrate/process/d7/FieldSettings.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldType core/modules/field/src/Plugin/migrate/process/FieldType.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
FieldTypeDefaults core/modules/field/src/Plugin/migrate/process/d6/FieldTypeDefaults.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
FieldTypeDefaults core/modules/field/src/Plugin/migrate/process/d7/FieldTypeDefaults.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1
field_form_field_config_edit_form_entity_builder core/modules/field/field.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
field_ui_form_manage_field_form_submit core/modules/field_ui/field_ui.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\field_ui\Hook\FieldUiHooks::manageFieldFormSubmit() instead.

function
FileDeprecatedTestThemeHooks::fileMimetypeMappingAlter core/modules/file/tests/file_deprecated_test/src/Hook/FileDeprecatedTestThemeHooks.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Kept only for BC test coverage, see \Drupal\KernelTests\Core\File\MimeTypeLegacyTest.

function
FileSystemInterface::basename core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use PHP native basename() instead.

function 1

Other projects


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