I'm trying to use
drupal_block("book_navigation") in a twig template (with the twig_tweak module installed) to display a list of chapters for a book page. But I'm getting a list of all books and their chapters.
Is there a way to use
drupal_block("book_navigation") to produce a list of chapters for just the one book, maybe by passing the id of the book node as a second parameter? Or some other way?
Compare to the user interface /admin/structure/block. There, when you place a Book Navigation block in a region, you can choose the configuration option "Show block only on book pages". This causes the block to produce a list of chapters for only the book whose page the list appears on. So it's clearly possible to do it using the book navigation block. Just need to know how.