Get link value from menu link
Let’s say I have created a new menu node under Structure -> Menu. The name of the menu is "Footer" and for this I created a new "Menu link" called "imprint" which has a link.
Structure->Menu->menu link->link
How do I get the value of this link?
I have already tried the following, but can’t get it from here:
$menuLink = Drupal::entityTypeManager()->getStorage('menu')->load(''Footer);
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.