You are here

public function BookOutlineStorageInterface::loadMultiple in Drupal 10

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

Loads books.

Each book entry consists of the following keys:

  • bid: The node ID of the main book.
  • nid: The node ID of the book entry itself.
  • pid: The parent node ID of the book.
  • has_children: A boolean to indicate whether the book has children.
  • weight: The weight of the book entry to order siblings.
  • depth: The depth in the menu hierarchy the entry is placed into.

Parameters

array $nids: An array of node IDs.

bool $access: Whether access checking should be taken into account.

Return value

array Array of loaded book items.

File

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

Class

BookOutlineStorageInterface
Defines a common interface for book outline storage classes.

Namespace

Drupal\book

Code

public function loadMultiple($nids, $access = TRUE);