Loading src/Plugin/Block/CustomBookNavigationBlock.php +4 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,10 @@ class CustomBookNavigationBlock extends BookNavigationBlock { // Retrieve the full menu, to the specified depth. $data = $this->bookManager->bookTreeAllData($book_id, $book, $max_levels, $always_expand); $book_menus[$book_id] = $this->bookManager->bookTreeOutput($data); $book_menus[$book_id]['#items'][$book_id]['in_active_trail'] = FALSE; if ($book_menus[$book_id]['#items'][$book_id]['original_link']['bid'] == $current_bid) { $book_menus[$book_id]['#items'][$book_id]['in_active_trail'] = TRUE; } } $book_menus[$book_id] += [ '#book_title' => $book['title'], Loading Loading
src/Plugin/Block/CustomBookNavigationBlock.php +4 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,10 @@ class CustomBookNavigationBlock extends BookNavigationBlock { // Retrieve the full menu, to the specified depth. $data = $this->bookManager->bookTreeAllData($book_id, $book, $max_levels, $always_expand); $book_menus[$book_id] = $this->bookManager->bookTreeOutput($data); $book_menus[$book_id]['#items'][$book_id]['in_active_trail'] = FALSE; if ($book_menus[$book_id]['#items'][$book_id]['original_link']['bid'] == $current_bid) { $book_menus[$book_id]['#items'][$book_id]['in_active_trail'] = TRUE; } } $book_menus[$book_id] += [ '#book_title' => $book['title'], Loading