X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fbook%2Fbook.module;fp=web%2Fcore%2Fmodules%2Fbook%2Fbook.module;h=4c62274271db92fb9b89c41a382089c21801aee0;hp=988201ee1e541691e9abed142cbb20a2a87b0dbc;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/book/book.module b/web/core/modules/book/book.module index 988201ee1..4c6227427 100644 --- a/web/core/modules/book/book.module +++ b/web/core/modules/book/book.module @@ -82,7 +82,8 @@ function book_entity_type_build(array &$entity_types) { $entity_types['node'] ->setFormClass('book_outline', 'Drupal\book\Form\BookOutlineForm') ->setLinkTemplate('book-outline-form', '/node/{node}/outline') - ->setLinkTemplate('book-remove-form', '/node/{node}/outline/remove'); + ->setLinkTemplate('book-remove-form', '/node/{node}/outline/remove') + ->addConstraint('BookOutline', []); } /** @@ -437,7 +438,7 @@ function template_preprocess_book_navigation(&$variables) { } if (!empty($build)) { - drupal_render($build); + \Drupal::service('renderer')->render($build); } $variables['has_links'] = FALSE;