Last active
September 10, 2018 09:33
-
-
Save shadcn/fbc536e3c1587a35e02068f088d56a91 to your computer and use it in GitHub Desktop.
Programmatically create a menu link in Drupal 8
Where that code should be placed so it's executed only once? Also, what about translatable menu items? How to add menu item that has different title and url (path) for different languages?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to provide a parent plugin ID.
e.g.
To get the parent
MenuLinkContentlink item, look at theplugin.manager.menu.linkormenu.link_treeservices