BookRemoveForm::getConfirmText

public BookRemoveForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormBase::getConfirmText File core/modules/book/src/Form/BookRemoveForm.php, line 80 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function getConfirmText() { return $this->t('Remove'); }

BookRemoveForm::getCancelUrl

public BookRemoveForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/book/src/Form/BookRemoveForm.php, line 94 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function getCancelUrl() { return $this->node->urlInfo(); }

BookRemoveForm::create

public static BookRemoveForm::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 c

BookRemoveForm::buildForm

public BookRemoveForm::buildForm(array $form, FormStateInterface $form_state, NodeInterface $node = NULL) Form constructor. 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 array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/book/src/Form/BookRemoveForm.php, line 59 Class BookRemoveForm Remove form for book module. Namespace Drupa

BookRemoveForm::$node

The node representing the book. Type: \Drupal\node\NodeInterface File core/modules/book/src/Form/BookRemoveForm.php, line 28 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code protected $node;

BookRemoveForm::$bookManager

The book manager. Type: \Drupal\book\BookManagerInterface File core/modules/book/src/Form/BookRemoveForm.php, line 21 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code protected $bookManager;

BookRemoveForm

Remove form for book module. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\book\Form\BookRemoveForm File core/modules/book/src/Form/BookRemoveForm.php, line 14 Namespace Drupal\book\Form Members Name Modifie

BookOutlineStorageInterface::updateMovedChildren

public BookOutlineStorageInterface::updateMovedChildren($bid, $original, $expressions, $shift) Update the book ID of the book link that it's being moved. Parameters int $bid: The ID of the book whose children we move. array $original: The original parent of the book link. array $expressions: Array of expressions to be added to the query. int $shift: The difference in depth between the old and the new position of the element being moved. Return value mixed The number of rows matched by the upd

BookOutlineStorageInterface::update

public BookOutlineStorageInterface::update($nid, $fields) Updates book reference for links that were moved between books. Parameters int $nid: The nid of the book entry to be updated. array $fields: The array of fields to be updated. Return value mixed The number of rows matched by the update query. File core/modules/book/src/BookOutlineStorageInterface.php, line 125 Class BookOutlineStorageInterface Defines a common interface for book outline storage classes. Namespace Drupal\book C

BookOutlineStorageInterface::loadMultiple

public BookOutlineStorageInterface::loadMultiple($nids, $access = TRUE) Loads books. Each book entry consists of the following keys: bid: The node ID of the main book. nid: The node ID of the book entry itself. pid: The parent node ID of the book. has_children: A boolean to indicate whether the book has children. weight: The weight of the book entry to order siblings. depth: The depth in the menu hierarchy the entry is placed into. Parameters array $nids: An array of node IDs. bool $ac