Commit d5de573d authored by catch's avatar catch

Issue #2113349 by Xano: Fixed Rename \Drupal\book\BookManager::updateID() to updateId().

parent a7f28c12
...@@ -323,7 +323,7 @@ public function updateOutline(NodeInterface $node) { ...@@ -323,7 +323,7 @@ public function updateOutline(NodeInterface $node) {
':nid' => $node->id(), ':nid' => $node->id(),
))->fetchField()) { ))->fetchField()) {
// Update the bid for this page and all children. // Update the bid for this page and all children.
$this->updateID($node->book); $this->updateId($node->book);
} }
} }
...@@ -362,7 +362,7 @@ public function createMenuName($id) { ...@@ -362,7 +362,7 @@ public function createMenuName($id) {
* @param array $book_link * @param array $book_link
* A fully loaded menu link that is part of the book hierarchy. * A fully loaded menu link that is part of the book hierarchy.
*/ */
public function updateID($book_link) { public function updateId($book_link) {
$query = $this->connection->select('menu_links'); $query = $this->connection->select('menu_links');
$query->addField('menu_links', 'mlid'); $query->addField('menu_links', 'mlid');
for ($i = 1; $i <= MENU_MAX_DEPTH && $book_link["p$i"]; $i++) { for ($i = 1; $i <= MENU_MAX_DEPTH && $book_link["p$i"]; $i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment