function BookOutlineStorageInterface::insert
Same name in other branches
- 8.9.x core/modules/book/src/BookOutlineStorageInterface.php \Drupal\book\BookOutlineStorageInterface::insert()
- 10 core/modules/book/src/BookOutlineStorageInterface.php \Drupal\book\BookOutlineStorageInterface::insert()
- 11.x core/modules/book/src/BookOutlineStorageInterface.php \Drupal\book\BookOutlineStorageInterface::insert()
Inserts a book link.
Parameters
array $link: The link array to be inserted in the database.
array $parents: The array of parent ids for the link to be inserted.
Return value
mixed The last insert ID of the query, if one exists.
1 method overrides BookOutlineStorageInterface::insert()
- BookOutlineStorage::insert in core/
modules/ book/ src/ BookOutlineStorage.php - Inserts a book link.
File
-
core/
modules/ book/ src/ BookOutlineStorageInterface.php, line 111
Class
- BookOutlineStorageInterface
- Defines a common interface for book outline storage classes.
Namespace
Drupal\bookCode
public function insert($link, $parents);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.