BookOutlineStorage::getBookSubtree

public BookOutlineStorage::getBookSubtree($link, $max_depth) Get book subtree. Parameters array $link: A fully loaded book link. int $max_depth: The maximum supported depth of the book tree. Return value array Array of unordered subtree book items. Overrides BookOutlineStorageInterface::getBookSubtree File core/modules/book/src/BookOutlineStorage.php, line 188 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code public function getBookSubtree

BookOutlineStorage::countOriginalLinkChildren

public BookOutlineStorage::countOriginalLinkChildren($original) Count the number of original link children. Parameters array $original: The book link array. Return value int Number of children. Overrides BookOutlineStorageInterface::countOriginalLinkChildren File core/modules/book/src/BookOutlineStorage.php, line 176 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code public function countOriginalLinkChildren($original) { return $this->

BookOutlineStorage::delete

public BookOutlineStorage::delete($nid) Deletes a book entry. Parameters int $nid: Deletes a book entry. Return value mixed Number of deleted book entries. Overrides BookOutlineStorageInterface::delete File core/modules/book/src/BookOutlineStorage.php, line 81 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code public function delete($nid) { return $this->connection->delete('book') ->condition('nid', $nid) ->execute();

BookOutlineStorage::$connection

Database Service Object. Type: \Drupal\Core\Database\Connection File core/modules/book/src/BookOutlineStorage.php, line 17 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code protected $connection;

BookOutlineStorage

Defines a storage class for books outline. Hierarchy class \Drupal\book\BookOutlineStorage implements BookOutlineStorageInterface File core/modules/book/src/BookOutlineStorage.php, line 10 Namespace Drupal\book Members Name Modifiers Type Description BookOutlineStorage::$connection protected property Database Service Object. BookOutlineStorage::countOriginalLinkChildren public function Count the number of original link children. Overrides BookOutlineStorageInterf

BookOutlineForm::__construct

public BookOutlineForm::__construct(EntityManagerInterface $entity_manager, BookManagerInterface $book_manager) Constructs a BookOutlineForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\book\BookManagerInterface $book_manager: The BookManager service. Overrides ContentEntityForm::__construct File core/modules/book/src/Form/BookOutlineForm.php, line 39 Class BookOutlineForm Displays the book outline form. Namespace Drupal\boo

BookOutlineForm::getBaseFormId

public BookOutlineForm::getBaseFormId() Returns a string identifying the base form. Return value string|null The string identifying the base form or NULL if this is not a base form. Overrides EntityForm::getBaseFormId File core/modules/book/src/Form/BookOutlineForm.php, line 57 Class BookOutlineForm Displays the book outline form. Namespace Drupal\book\Form Code public function getBaseFormId() { return NULL; }

BookOutlineForm::create

public static BookOutlineForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

BookOutlineForm::form

public BookOutlineForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/book/src/Form/BookOutlineForm.php, line 64 Class BookOutlineForm Displays the book outline form. Namespace Drupal\book\Form Code public function form(array $form, FormStateInterface $form_state) { $form['#title'] = $this-

BookOutlineForm::save

public BookOutlineForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the opera