You are here

public function BookOutlineStorageInterface::insert in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 117
Contains \Drupal\book\BookOutlineStorageInterface.

Class

BookOutlineStorageInterface
Defines a common interface for book outline storage classes.

Namespace

Drupal\book

Code

public function insert($link, $parents);