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

Breadcrumb

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

function MenuLinkManagerInterface::getChildIds

Loads all child link IDs of a given menu link, regardless of visibility.

This method is mostly useful for testing.

Parameters

string $id: The menu link plugin ID.

Return value

array An unordered array of IDs representing the IDs of all children, or NULL if the ID is invalid.

1 method overrides MenuLinkManagerInterface::getChildIds()
MenuLinkManager::getChildIds in core/lib/Drupal/Core/Menu/MenuLinkManager.php
Loads all child link IDs of a given menu link, regardless of visibility.

File

core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php, line 177

Class

MenuLinkManagerInterface
Defines an interface for managing menu links and storing their definitions.

Namespace

Drupal\Core\Menu

Code

public function getChildIds($id);

API Navigation

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