Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291765

Unsaved menu links have the wrong bundle (always 'tools')

$
0
0

Problem

The 'bundle' property of menu links should be derived from the 'menu_name' property. On load this happens, but not when creating a new bundle. In that case, the class default of 'tools' is not overridden.

<?php
$menu_link
= entity_create(array('menu_name'=> 'foo'));
print
$menu_link->bundle; // This should be 'foo', but is actually 'tools'.
?>

Related Issues

See also #1966298-91: Introduce menu link bundles per menus and #115-117


Viewing all articles
Browse latest Browse all 291765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>