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 Berdir on
Change record status:
Draft (View all draft change records)
Introduced in branch:
8.0.x
Issue links:
Description:
The mentioned variables are now third-party settings of the node type configuration entity:
7.x
$menu_options = variable_get('menu_options_' . $type->type, array('main-menu'))
$menu_parent = variable_get('menu_parent_' . $type->type, 'main-menu:0')
8.x
$menu_options = $type->getThirdPartySetting('menu_ui', 'available_menus', array('main'));
$menu_parent = $type->getThirdPartySetting('menu_ui', 'parent', 'main:');
See also Modules can now store settings for node types using the new ThirdPartySettingsInterface
Impacts:
Module developers