Deprecated - 8.9.x - drupal

Primary tabs

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

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalTests\Installer\InstallerTestBase. See https://www.drupal.org/node/2988752

class 1 1
InstallProfileMismatchException::__construct core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php

in drupal:8.3.0 and is removed from drupal:9.0.0. The install profile is written to core.extension.

function
install_ensure_config_directory core/includes/install.inc

in drupal:8.1.0 and is removed from drupal:9.0.0. Use config_get_config_directory() and \Drupal\Core\File\FileSystemInterface::prepareDirectory() instead.

function
install_write_profile core/includes/install.core.inc

in drupal:8.3.0 and is removed from drupal:9.0.0. The install profile is written to core.extension.

function
InternalUri core/modules/menu_link_content/src/Plugin/migrate/process/d7/InternalUri.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\menu_link_content\Plugin\migrate\process\LinkUri instead.

class
ItemHalJsonTestBase core/modules/hal/tests/src/Functional/EntityResource/Item/ItemHalJsonTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\aggregator\Functional\Hal\ItemHalJsonTestBase instead.

class
ItemResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Item/ItemResourceTestBase.php

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

class
Iterator core/modules/migrate/src/Plugin/migrate/process/Iterator.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\migrate\process\SubProcess instead.

class 1
JavascriptTestBase core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead

class 1
KernelTestBase core/modules/simpletest/src/KernelTestBase.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\KernelTests\KernelTestBase instead.

class 4 4
KernelTestBase::isTestInIsolation core/tests/Drupal/KernelTests/KernelTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. KernelTestBase tests are always run in isolated processes.

function
KernelTestBase::__get core/tests/Drupal/KernelTests/KernelTestBase.php

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

function
LanguageConfigFactoryOverrideInterface::setLanguageFromDefault core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This method has been replaced by injecting the default language into the constructor.

function 1
language_negotiation_url_domains core/modules/language/language.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::config('language.negotiation')->get('url.domains') instead.

function
language_negotiation_url_prefixes core/modules/language/language.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::config('language.negotiation')->get('url.prefixes') instead.

function
LayoutBuilderEntityViewDisplay::getRuntimeSections core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php

in drupal:8.7.0 and is removed from drupal:9.0.0. \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::findByContext() should be used instead. See https://www.drupal.org/node/3022574.

function
LayoutEntityHelperTrait::isEntityUsingFieldOverride core/modules/layout_builder/src/LayoutEntityHelperTrait.php

in drupal:8.7.0 and is removed from drupal:9.0.0. To determine if an entity has a layout override, use \Drupal\layout_builder\LayoutEntityHelperTrait::getSectionStorageForEntity() and check whether the result is an instance of \Drupal\layout_builder\DefaultsSectionStorageInterface.

function
LegacyJavascriptTestBase core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead

BC layer for testing browser interaction implemented in JavaScript.

class
LegacyMessenger core/lib/Drupal/Core/Messenger/LegacyMessenger.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\Messenger instead.

class 2
LibraryDiscoveryParser::fileValidUri core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php

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

function 1
LinkField core/modules/link/src/Plugin/migrate/cckfield/LinkField.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\link\Plugin\migrate\field\d6\LinkField instead.

class 1 2
LinkField core/modules/link/src/Plugin/migrate/cckfield/d7/LinkField.php

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

class 1
LinkGeneratorTrait core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Link instead.

trait 2
LinkGeneratorTrait::getLinkGenerator core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Inject the 'link_generator' service or use \Drupal\Core\Link instead

function
LinkGeneratorTrait::l core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Link::fromTextAndUrl() instead.

function
LinkGeneratorTrait::setLinkGenerator core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Inject the 'link_generator' service or use \Drupal\Core\Link instead

function
LinkManager core/modules/rest/src/LinkManager/LinkManager.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC.

class 1
LinkManagerBase core/modules/rest/src/LinkManager/LinkManagerBase.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC.

class
LinkManagerInterface core/modules/rest/src/LinkManager/LinkManagerInterface.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC.

interface 1
LinkUri core/modules/menu_link_content/src/Plugin/migrate/process/d6/LinkUri.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\menu_link_content\Plugin\migrate\process\LinkUri instead.

class
LocalActionManager::$controllerResolver core/lib/Drupal/Core/Menu/LocalActionManager.php

Using the 'controller_resolver' service as the first argument is deprecated, use the 'http_kernel.controller.argument_resolver' instead. If your subclass requires the 'controller_resolver' service add it as an additional argument.

property
LOCALE_PLURAL_DELIMITER core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Component\Gettext\PoItem::DELIMITER instead.

constant
locale_translation_manual_status core/modules/locale/locale.pages.inc

in drupal:8.5.0 and is removed from drupal:9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.

function 1
LocalTaskManager::$controllerResolver core/lib/Drupal/Core/Menu/LocalTaskManager.php

Using the 'controller_resolver' service as the first argument is deprecated, use the 'http_kernel.controller.argument_resolver' instead. If your subclass requires the 'controller_resolver' service add it as an additional argument.

property
Media::getCurrentUserId core/modules/media/src/Entity/Media.php

The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0.

function 1
MediaDeleteMultipleConfirmForm core/modules/media/src/Form/MediaDeleteMultipleConfirmForm.php

in drupal:8.6.0 and is removed from drupal:9.0.0. This route is not used in Drupal core. As an internal API, it may also be removed in a minor release. If you are using it, copy the class and the related "entity.media.multiple_delete_confirm" route to your module.

class
MediaFunctionalTestCreateMediaTypeTrait core/modules/media/tests/src/Functional/MediaFunctionalTestCreateMediaTypeTrait.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\media\Traits\MediaTypeCreationTrait instead.

trait
MediaResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Media/MediaResourceTestBase.php

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

class
MediaTypeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/MediaType/MediaTypeResourceTestBase.php

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

class
MenuLinkContentResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentResourceTestBase.php

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

class
MenuLinkParent::$migrationPlugin core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php

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

property
MenuResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Menu/MenuResourceTestBase.php

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

class
MenuTestBase core/modules/system/src/Tests/Menu/MenuTestBase.php

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

class
MenuWebTestBase core/modules/menu_ui/src/Tests/MenuWebTestBase.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\menu_ui\Traits\MenuUiTrait methods, instead.

class
menu_cache_clear_all core/includes/menu.inc

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal::cache('menu')->invalidateAll() instead.

function 1
menu_local_tabs core/includes/menu.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use local_tasks_block block or inline theming instead.

function 1
menu_local_tasks core/includes/menu.inc

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

function
MENU_MAX_MENU_NAME_LENGTH_UI core/modules/menu_ui/menu_ui.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\system\MenuStorage::MAX_ID_LENGTH instead.

constant
menu_primary_local_tasks core/includes/menu.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasks() instead.

function 2
menu_secondary_local_tasks core/includes/menu.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasks() instead.

function 2

Other projects


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