You are here

Deprecated in Drupal 8

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
file_unmanaged_move core/includes/file.inc function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::move(). 1
file_unmanaged_prepare core/includes/file.inc function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::getDestinationFilename() instead. 1
file_unmanaged_save_data core/includes/file.inc function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::saveData(). 1
file_upload_max_size core/includes/file.inc function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Environment::getUploadMaxSize() instead. 1
file_uri_scheme core/includes/file.inc function in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme() instead. 1
file_uri_target core/includes/file.inc function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget() instead. 1
file_valid_uri core/includes/file.inc function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri() instead. 1
FilterFormatPermission::$migrationPlugin core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php property in drupal:8.8.x and is removed from drupal:9.0.0. Use the migrate.lookup service instead.
FilterFormatResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/FilterFormat/FilterFormatResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\filter\Functional\Rest\FilterFormatResourceTestBase instead.
filter_form_access_denied core/modules/filter/filter.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\filter\Element\TextFormat::accessDeniedCallback() instead. 1
FormattedDateDiff::getMaxAge core/lib/Drupal/Core/Datetime/FormattedDateDiff.php function in drupal:8.1.9 and is removed from drupal:9.0.0. Use \Drupal\Core\Datetime\FormattedDateDiff::getCacheMaxAge() instead.
format_date core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('date.formatter')->format(). 1
format_string core/includes/bootstrap.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Render\FormattableMarkup instead.
FormController::$controllerResolver core/lib/Drupal/Core/Controller/FormController.php property Deprecated property that is only assigned when the 'controller_resolver' service is used as the first parameter to FormController::__construct().
FormSubmitter::drupalInstallationAttempted core/lib/Drupal/Core/Form/FormSubmitter.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead.
ForumManagerInterface::getParents core/modules/forum/src/ForumManagerInterface.php function in drupal:8.1.0 and is removed from drupal:9.0.0. Call loadAllParents() on taxonomy term storage directly. 1
FunctionalTestSetupTrait::$configDirectories core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php property in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.
GenericCacheBackendUnitTestBase core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php class in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase instead.
hal_test_rest_relation_uri_alter core/modules/hal/tests/modules/hal_test/hal_test.module function Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetRelationUri().
hal_test_rest_type_uri_alter core/modules/hal/tests/modules/hal_test/hal_test.module function Kept only for BC test coverage, see \Drupal\Tests\hal\Kernel\HalLinkManagerTest::testGetTypeUri().
HandlerTestBase core/modules/views/src/Tests/Handler/HandlerTestBase.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Functional\ViewTestBase. 1 1
history_attach_timestamp core/modules/history/history.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\history\HistoryRenderCallback::lazyBuilder() instead. 1
hook_path_delete core/modules/path/path.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_delete() instead.
hook_path_insert core/modules/path/path.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_insert() instead.
hook_path_update core/modules/path/path.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use hook_path_alias_update() instead.
hook_rest_relation_uri_alter core/modules/rest/rest.api.php function 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. Modules may wish to alter the relation URI generated for a resource based on the context of the serializer/normalizer operation.
hook_rest_type_uri_alter core/modules/rest/rest.api.php function 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. Modules may wish to alter the type URI generated for a resource based on the context of the serializer/normalizer operation.
hook_simpletest_alter core/modules/simpletest/simpletest.api.php function 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.
hook_test_finished core/modules/simpletest/simpletest.api.php function 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.
hook_test_group_finished core/modules/simpletest/simpletest.api.php function 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.
hook_test_group_started core/modules/simpletest/simpletest.api.php function 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.
I18nProfileField core/modules/config_translation/src/Plugin/migrate/source/d6/I18nProfileField.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation instead.
i18nVariable core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation instead.
Image::chmod core/lib/Drupal/Core/Image/Image.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::chmod().
ImageField core/modules/image/src/Plugin/migrate/cckfield/d7/ImageField.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead. 1 1
ImageField core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead. 1
ImageField core/modules/file/src/Plugin/migrate/field/d6/ImageField.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d6\ImageField instead. 1
ImageField core/modules/file/src/Plugin/migrate/field/d7/ImageField.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead. 1
ImageFieldTestBase core/modules/image/src/Tests/ImageFieldTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\image\Functional\ImageFieldTestBase instead.
ImageItem::getEntityManager core/modules/image/src/Plugin/Field/FieldType/ImageItem.php function 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.
ImageStyle::fileUriScheme core/modules/image/src/Entity/ImageStyle.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManager::getTarget() instead.
ImageStyle::fileUriTarget core/modules/image/src/Entity/ImageStyle.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManager::getUriTarget() instead.
ImageStyleInterface::getReplacementID core/modules/image/src/ImageStyleInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\image\ImageStyleStorageInterface::getReplacementId() instead. 1
ImageStyleResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ImageStyle/ImageStyleResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase instead.
IMAGE_STORAGE_DEFAULT core/modules/image/image.module constant in drupal:8.1.0 and is removed from drupal:9.0.0. 1
IMAGE_STORAGE_EDITABLE core/modules/image/image.module constant in drupal:8.1.0 and is removed from drupal:9.0.0.
IMAGE_STORAGE_MODULE core/modules/image/image.module constant in drupal:8.1.0 and is removed from drupal:9.0.0.
IMAGE_STORAGE_NORMAL core/modules/image/image.module constant in drupal:8.1.0 and is removed from drupal:9.0.0. 1
IMAGE_STORAGE_OVERRIDE core/modules/image/image.module constant in drupal:8.1.0 and is removed from drupal:9.0.0. 1
InlineBlockTestBase::waitForNoElement core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalJavascriptTests\JSWebAssert::assertNoElementAfterWait()

Pages

Other projects