function MenuTreeStorageInterface::getSubtreeHeight

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::getSubtreeHeight()
  2. 10 core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::getSubtreeHeight()
  3. 11.x core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::getSubtreeHeight()

Finds the height of a subtree rooted by the given ID.

Parameters

string $id: The ID of an item in the storage.

Return value

int Returns the height of the subtree. This will be at least 1 if the ID exists, or 0 if the ID does not exist in the storage.

1 method overrides MenuTreeStorageInterface::getSubtreeHeight()
MenuTreeStorage::getSubtreeHeight in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Finds the height of a subtree rooted by the given ID.

File

core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 242

Class

MenuTreeStorageInterface
Defines an interface for storing a menu tree containing menu link IDs.

Namespace

Drupal\Core\Menu

Code

public function getSubtreeHeight($id);

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