book_type_is_allowed($type)
Determines if a given node type is in the list of types allowed for books.
string $type: A node type.
bool A Boolean TRUE if the node type can be included in books; otherwise, FALSE.
function book_type_is_allowed($type) { return in_array($type, \Drupal::config('book.settings')->get('allowed_types')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!book!book.module/function/book_type_is_allowed/8.1.x