Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By dawehner on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Following the conversion of hook_menu() to the new routing and menu link APIs, the following two API functions have been removed:
- menu_get_item()
- menu_set_item()
If you want to get the name, parameters, or route object for the current route, you can use the RouteMatch object. In most cases, code that calls to menu_get_item()
in Drupal 7 will already be part of code that needs to be rewritten to leverage the new routing system or menu links APIs.
Impacts:
Module developers