Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
LOCALE_TRANSLATION_USE_SOURCE_LOCAL core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use TranslationUpdateMode::Local->value instead.

constant
LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use TranslationUpdateMode::RemoteAndLocal->value instead.

constant
MatchingRouteNotFoundException core/lib/Drupal/Core/Routing/MatchingRouteNotFoundException.php

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

class
Media::getRequestTime core/modules/media/src/Entity/Media.php

in drupal:12.1.0 and is removed from drupal:13.0.0. There is no replacement.

function
media_filter_format_edit_form_validate core/modules/media/media.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use MediaHooks::formatEditFormValidate() instead.

function
MenuSettingsConstraint core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php

in drupal:11.5.0 and is removed from drupal:13.0.0. Menu settings validation is now handled as a form validation callback in \Drupal\menu_ui\Hook\MenuUiHooks::formNodeFormValidate().

class
MenuSettingsConstraintValidator core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php

in drupal:11.5.0 and is removed from drupal:13.0.0. Menu settings validation is now handled as a form validation callback in \Drupal\menu_ui\Hook\MenuUiHooks::formNodeFormValidate().

class
menu_ui_get_menu_link_defaults core/modules/menu_ui/menu_ui.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\menu_ui\MenuUiUtility::getMenuLinkDefaults() instead.

function
menu_ui_node_builder core/modules/menu_ui/menu_ui.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::nodeBuilder() instead.

function
MigrateEntityComplete core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php

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

class 1
MigrateFieldPluginManager core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php

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

class 1 3
MigrateSkipProcessException core/modules/migrate/src/MigrateSkipProcessException.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Return FALSE from a process plugin's isPipelineStopped() method to stop further processing on a pipeline.

class 1
ModuleHandlerInterface::loadAllIncludes core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

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

function 1
module_config_sort core/includes/module.inc

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(ModuleWeight::class)->sort() instead.

function 1
module_set_weight core/includes/module.inc

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(ModuleWeight::class)->set() instead.

function
NavigationShortcutsBlock core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php

in drupal:11.5.0 and is removed from drupal:12.0.0. Use \Drupal\shortcut\Plugin\Block\ShortcutNavigationBlock instead.

class
node.admin.inc core/modules/node/node.admin.inc

in drupal:11.3.0 and is removed from drupal:12.0.0. Functions have been deprecated.

file
NodeSearch core/modules/node/src/Plugin/Search/NodeSearch.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Instead, use \Drupal\search_node\Plugin\Search\SearchNode.

class
NodeStorageInterface::countDefaultLanguageRevisions core/modules/node/src/NodeStorageInterface.php

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

function 1
NodeStorageInterface::revisionIds core/modules/node/src/NodeStorageInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use an entity query instead.

function 1
NodeStorageInterface::userRevisionIds core/modules/node/src/NodeStorageInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use an entity query instead.

function 1
NodeUpdate7008 core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php

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

class
NodeViewController core/modules/node/src/Controller/NodeViewController.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\Controller\EntityViewController instead.

class
node_access_grants core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('Drupal\node\NodeGrantsHelper')->nodeAccessGrants() instead.

function
node_access_needs_rebuild core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('\Drupal\node\NodeAccessRebuild')->setNeedsRebuild() and \Drupal::service('\Drupal\node\NodeAccessRebuild')->needsRebuild() instead.

function
node_access_rebuild core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('\Drupal\node\NodeAccessRebuild')->rebuild($batch_mode) instead.

function
node_get_type_label core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use $node->getBundleEntity()->label() instead.

function
node_is_page core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. There is no replacement, check the view mode instead during rendering.

function
node_mass_update core/modules/node/node.admin.inc

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\node\NodeBulkUpdate::class)->process() instead.

function
node_mass_update core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\node\NodeBulkUpdate::class)->process() instead.

function
node_type_get_names core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal::service('entity_type.bundle.info')->getBundleLabels('node') instead.

function
options_allowed_values core/modules/options/options.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\options\OptionsAllowedValuesInterface::allowedValues() instead.

function
OverridesSectionStorage::hasIntegerId core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId() instead.

function
PathSetTranslated core/modules/path/src/Plugin/migrate/process/PathSetTranslated.php

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

class 1
PdoTrait::clientFetchColumn core/lib/Drupal/Core/Database/Statement/PdoTrait.php

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function
PdoTrait::clientFetchObject core/lib/Drupal/Core/Database/Statement/PdoTrait.php

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function
PdoTrait::clientQueryString core/lib/Drupal/Core/Database/Statement/PdoTrait.php

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function
PdoTrait::$fetchModeLiterals core/lib/Drupal/Core/Database/Statement/PdoTrait.php

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

property
PdoTrait::pdoToFetchAs core/lib/Drupal/Core/Database/Statement/PdoTrait.php

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function
PerformanceTestTrait::doInstallModulesFromClassProperty core/tests/Drupal/Tests/PerformanceTestTrait.php

in drupal:12.0.0 and is removed from drupal:13.0.0. Use ::doGetModulesFromClassProperty() instead.

function
ProcessField core/modules/field/src/Plugin/migrate/process/ProcessField.php

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

class 1
ProfileFieldOptionTranslation core/modules/user/src/Plugin/migrate/process/d6/ProfileFieldOptionTranslation.php

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

class
ProfileFieldSettings core/modules/user/src/Plugin/migrate/process/ProfileFieldSettings.php

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

class
RecipeRunner::installModule core/lib/Drupal/Core/Recipe/RecipeRunner.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Recipe\RecipeRunner::installModules() instead.

function
REGIONS_ALL core/modules/system/system.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Instead, use \Drupal\Core\Extension\Theme::listAllRegions().

constant 1
REGIONS_VISIBLE core/modules/system/system.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Instead, use \Drupal\Core\Extension\Theme::listVisibleRegions().

constant 2
RenderElement core/lib/Drupal/Core/Render/Element/RenderElement.php

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

class 1 1
responsive_image_get_image_dimensions core/modules/responsive_image/responsive_image.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::getImageDimensions() instead.

function
responsive_image_get_mime_type core/modules/responsive_image/responsive_image.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::getMimeType() instead.

function
RolesLookup core/modules/block/src/Plugin/migrate/process/RolesLookup.php

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

class

Other projects


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