Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php

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

constant
EntitySearchPage::import core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php

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

function
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
EntityViewsData::$fieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

property
EntityViewsData::getFieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

function 1
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 4
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 6
ExtensionDiscovery::$fileCache core/lib/Drupal/Core/Extension/ExtensionDiscovery.php

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

property
ExtensionMimeTypeGuesser::$defaultMapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a MimeTypeMapInterface $map to the constructor instead.

property
ExtensionMimeTypeGuesser::$mapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a MimeTypeMapInterface $map to the constructor instead.

property
ExtensionMimeTypeGuesser::setMapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\MimeType\MimeTypeMapInterface::addMapping() instead.

function
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_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
FileSystemInterface::EXISTS_ERROR core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Error instead.

constant
FileSystemInterface::EXISTS_RENAME core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Rename instead.

constant 4
FileSystemInterface::EXISTS_REPLACE core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Replace instead.

constant
FileTransfer core/lib/Drupal/Core/FileTransfer/FileTransfer.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class 4 2
FileTransferAuthorizeForm core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class
FileTransferException core/lib/Drupal/Core/FileTransfer/FileTransferException.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

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

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

class 1
file_get_content_headers core/modules/file/file.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use Drupal\file\Entity\FileInterface::getDownloadHeaders() instead.

function
file_managed_file_submit core/modules/file/file.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use Drupal\file\Element\ManagedFile::submit() instead.

function
file_post_update_add_playsinline core/modules/file/file.post_update.php

in drupal:12.3.0 and is removed from drupal:13.0.0. This was rolled back due to a bug in the implementation and is now a no-op function and is kept only to prevent errors when updating.

function

Other projects


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