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