php CRUDMenú

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php CRUDMenú相关的知识,希望对你有一定的参考价值。

<?php

// LOAD
// You can load up the menu tree with MenuLinkTree::load, which will give you an array of menu links to work with. From there it's just a matter of looping through and getting what you need, e.g.
$tree = \Drupal::menuTree()->load('main', new \Drupal\Core\Menu\MenuTreeParameters());
foreach ($tree as $item) {
  $title = $item->link->getTitle();
  $url_obj = $item->link->getUrlObject();
  $has_children = $item->hasChildren;
  // etc...
}

以上是关于php CRUDMenú的主要内容,如果未能解决你的问题,请参考以下文章

为啥 PHP 循环在 250 次循环后会导致禁止页面?

php Imprimirmenúen主题

php Menú标签

php Desplegable paraelmenúmobile

php Menúidiomadesplegable。

php Añadirmenúconc短代码