Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
file_unmanaged_move core/includes/file.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::move().

function 1
file_unmanaged_prepare core/includes/file.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::getDestinationFilename() instead.

function 1
file_unmanaged_save_data core/includes/file.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::saveData().

function 1
file_upload_max_size core/includes/file.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Environment::getUploadMaxSize() instead.

function 1
file_uri_scheme core/includes/file.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme() instead.

function 1
file_uri_target core/includes/file.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget() instead.

function 1
file_valid_uri core/includes/file.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri() instead.

function 1
FilterFormatPermission::$migrationPlugin core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php

in drupal:8.8.x and is removed from drupal:9.0.0. Use the migrate.lookup service instead.

property
FilterFormatResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/FilterFormat/FilterFormatResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\filter\Functional\Rest\FilterFormatResourceTestBase instead.

class
filter_form_access_denied core/modules/filter/filter.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\filter\Element\TextFormat::accessDeniedCallback() instead.

function 1
FormattedDateDiff::getMaxAge core/lib/Drupal/Core/Datetime/FormattedDateDiff.php

in drupal:8.1.9 and is removed from drupal:9.0.0. Use \Drupal\Core\Datetime\FormattedDateDiff::getCacheMaxAge() instead.

function
format_date core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('date.formatter')->format().

function 1
format_string core/includes/bootstrap.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Render\FormattableMarkup instead.

function 1
FormController::$controllerResolver core/lib/Drupal/Core/Controller/FormController.php

Deprecated property that is only assigned when the 'controller_resolver' service is used as the first parameter to FormController::__construct().

property
FormSubmitter::drupalInstallationAttempted core/lib/Drupal/Core/Form/FormSubmitter.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead.

function
ForumManagerInterface::getParents core/modules/forum/src/ForumManagerInterface.php

in drupal:8.1.0 and is removed from drupal:9.0.0. Call loadAllParents() on taxonomy term storage directly.

function 1
FunctionalTestSetupTrait::$configDirectories core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.

property
GenericCacheBackendUnitTestBase core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase instead.

class
hal_test_rest_relation_uri_alter core/modules/hal/tests/modules/hal_test/hal_test.module

Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetRelationUri().

function
hal_test_rest_type_uri_alter core/modules/hal/tests/modules/hal_test/hal_test.module

Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetTypeUri().

function
HandlerTestBase core/modules/views/src/Tests/Handler/HandlerTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Functional\ViewTestBase.

class 1 1
history_attach_timestamp core/modules/history/history.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\history\HistoryRenderCallback::lazyBuilder() instead.

function 1
hook_path_delete core/modules/path/path.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_delete() instead.

function
hook_path_insert core/modules/path/path.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_insert() instead.

function
hook_path_update core/modules/path/path.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_update() instead.

function
hook_rest_relation_uri_alter core/modules/rest/rest.api.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use hook_hal_relation_uri_alter() instead. This exists solely for BC.

function
hook_rest_type_uri_alter core/modules/rest/rest.api.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use hook_hal_type_uri_alter() instead. This exists solely for BC.

function
hook_simpletest_alter core/modules/simpletest/simpletest.api.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.

function
hook_test_finished core/modules/simpletest/simpletest.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.

function
hook_test_group_finished core/modules/simpletest/simpletest.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.

function
hook_test_group_started core/modules/simpletest/simpletest.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.

function
I18nProfileField core/modules/config_translation/src/Plugin/migrate/source/d6/I18nProfileField.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation instead.

class
i18nVariable core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation instead.

class
Image::chmod core/lib/Drupal/Core/Image/Image.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::chmod().

function
ImageField core/modules/file/src/Plugin/migrate/field/d6/ImageField.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d6\ImageField instead.

class 1
ImageField core/modules/file/src/Plugin/migrate/field/d7/ImageField.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead.

class 1
ImageField core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead.

class 1
ImageField core/modules/image/src/Plugin/migrate/cckfield/d7/ImageField.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead.

class 1 1
ImageFieldTestBase core/modules/image/src/Tests/ImageFieldTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\image\Functional\ImageFieldTestBase instead.

class
ImageItem::getEntityManager core/modules/image/src/Plugin/Field/FieldType/ImageItem.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.

function
ImageStyle::fileUriScheme core/modules/image/src/Entity/ImageStyle.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManager::getTarget() instead.

function
ImageStyle::fileUriTarget core/modules/image/src/Entity/ImageStyle.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManager::getUriTarget() instead.

function
ImageStyleInterface::getReplacementID core/modules/image/src/ImageStyleInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\image\ImageStyleStorageInterface::getReplacementId() instead.

function 1
ImageStyleResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ImageStyle/ImageStyleResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase instead.

class
IMAGE_STORAGE_DEFAULT core/modules/image/image.module

in drupal:8.1.0 and is removed from drupal:9.0.0.

constant 1
IMAGE_STORAGE_EDITABLE core/modules/image/image.module

in drupal:8.1.0 and is removed from drupal:9.0.0.

constant
IMAGE_STORAGE_MODULE core/modules/image/image.module

in drupal:8.1.0 and is removed from drupal:9.0.0.

constant
IMAGE_STORAGE_NORMAL core/modules/image/image.module

in drupal:8.1.0 and is removed from drupal:9.0.0.

constant 1
IMAGE_STORAGE_OVERRIDE core/modules/image/image.module

in drupal:8.1.0 and is removed from drupal:9.0.0.

constant 1
InlineBlockTestBase::waitForNoElement core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalJavascriptTests\JSWebAssert::assertNoElementAfterWait()

function

Other projects


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