Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkTreeInterface.php

function MenuLinkTreeInterface::getSubtreeHeight

Finds the height of a subtree rooted by of 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 MenuLinkTreeInterface::getSubtreeHeight()
MenuLinkTree::getSubtreeHeight in core/lib/Drupal/Core/Menu/MenuLinkTree.php
Finds the height of a subtree rooted by of the given ID.

File

core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 124

Class

MenuLinkTreeInterface
Defines an interface for loading, transforming and rendering menu link trees.

Namespace

Drupal\Core\Menu

Code

public function getSubtreeHeight($id);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal