BooleanInterface

Interface for boolean data. Hierarchy interface \Drupal\Core\TypedData\PrimitiveInterfaceinterface \Drupal\Core\TypedData\Type\BooleanInterface File core/lib/Drupal/Core/TypedData/Type/BooleanInterface.php, line 10 Namespace Drupal\Core\TypedData\Type Members Name Modifiers Type Description PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type. PrimitiveInterface::getValue public function Gets the primiti

book_views_data

book_views_data() Implements hook_views_data(). File core/modules/book/book.views.inc, line 13 Provide views data for book.module. Code function book_views_data() { $data = []; $data['book'] = []; $data['book']['table'] = []; $data['book']['table']['group'] = t('Book'); $data['book']['table']['join'] = [ 'node_field_data' => [ 'left_field' => 'nid', 'field' => 'nid', ], ]; $data['book']['nid'] = [ 'title' => t('Page'), 'help' => t('Th

book_uninstall

book_uninstall() Implements hook_uninstall(). File core/modules/book/book.install, line 11 Install, update and uninstall functions for the book module. Code function book_uninstall() { // Clear book data out of the cache. \Drupal::cache('data')->deleteAll(); }

book_type_is_allowed

book_type_is_allowed($type) Determines if a given node type is in the list of types allowed for books. Parameters string $type: A node type. Return value bool A Boolean TRUE if the node type can be included in books; otherwise, FALSE. File core/modules/book/book.module, line 509 Allows users to create and organize related content in an outline. Code function book_type_is_allowed($type) { return in_array($type, \Drupal::config('book.settings')->get('allowed_types')); }

book_theme

book_theme() Implements hook_theme(). File core/modules/book/book.module, line 57 Allows users to create and organize related content in an outline. Code function book_theme() { return array( 'book_navigation' => array( 'variables' => array('book_link' => NULL), ), 'book_tree' => array( 'variables' => array('items' => array(), 'attributes' => array()), ), 'book_export_html' => array( 'variables' => array('title' => NULL, 'c

book_schema

book_schema() Implements hook_schema(). File core/modules/book/book.install, line 19 Install, update and uninstall functions for the book module. Code function book_schema() { $schema['book'] = array( 'description' => 'Stores book outline information. Uniquely defines the location of each node in the book outline', 'fields' => array( 'nid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0,

book_pick_book_nojs_submit

book_pick_book_nojs_submit($form, FormStateInterface $form_state) Form submission handler for node_form(). This handler is run when JavaScript is disabled. It triggers the form to rebuild so that the "Parent item" options are changed to reflect the newly selected book. When JavaScript is enabled, the submit button that triggers this handler is hidden, and the "Book" dropdown directly triggers the book_form_update() Ajax callback instead. See also book_form_update() book_form_node_form_alter()

book_node_view

book_node_view(array &$build, EntityInterface $node, EntityViewDisplayInterface $display, $view_mode) Implements hook_ENTITY_TYPE_view() for node entities. File core/modules/book/book.module, line 228 Allows users to create and organize related content in an outline. Code function book_node_view(array &$build, EntityInterface $node, EntityViewDisplayInterface $display, $view_mode) { if ($view_mode == 'full') { if (!empty($node->book['bid']) && empty($node->in_previ

book_node_update

book_node_update(EntityInterface $node) Implements hook_ENTITY_TYPE_update() for node entities. File core/modules/book/book.module, line 271 Allows users to create and organize related content in an outline. Code function book_node_update(EntityInterface $node) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); $book_manager->updateOutline($node); }

book_node_type_update

book_node_type_update(NodeTypeInterface $type) Implements hook_ENTITY_TYPE_update() for node_type entities. Updates book.settings configuration object if the machine-readable name of a node type is changed. File core/modules/book/book.module, line 519 Allows users to create and organize related content in an outline. Code function book_node_type_update(NodeTypeInterface $type) { if ($type->getOriginalId() != $type->id()) { $config = \Drupal::configFactory()->getEditable('book.s