You are here

public function BookOutlineStorageInterface::getChildRelativeDepth in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/BookOutlineStorageInterface.php \Drupal\book\BookOutlineStorageInterface::getChildRelativeDepth()
  2. 9 core/modules/book/src/BookOutlineStorageInterface.php \Drupal\book\BookOutlineStorageInterface::getChildRelativeDepth()

Gets child relative depth.

Parameters

array $book_link: The book link.

int $max_depth: The maximum supported depth of the book tree.

Return value

int The depth of the searched book.

File

core/modules/book/src/BookOutlineStorageInterface.php, line 58

Class

BookOutlineStorageInterface
Defines a common interface for book outline storage classes.

Namespace

Drupal\book

Code

public function getChildRelativeDepth($book_link, $max_depth);