MenuLinkTreeElement::$subtree

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php \Drupal\Core\Menu\MenuLinkTreeElement::subtree
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php \Drupal\Core\Menu\MenuLinkTreeElement::subtree
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php \Drupal\Core\Menu\MenuLinkTreeElement::subtree

The subtree of this element in the menu link tree (this link's children).

(Children of a link are only loaded if a link is marked as "expanded" by the query.)

Type: \Drupal\Core\Menu\MenuLinkTreeElement[]

File

core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php, line 42

Class

MenuLinkTreeElement
Provides a value object to model an element in a menu link tree.

Namespace

Drupal\Core\Menu

Code

public $subtree;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.