BookUninstallValidator

Prevents book module from being uninstalled whilst any book nodes exist or there are any book outline stored. Hierarchy class \Drupal\book\BookUninstallValidator implements ModuleUninstallValidatorInterface uses StringTranslationTrait File core/modules/book/src/BookUninstallValidator.php, line 14 Namespace Drupal\book Members Name Modifiers Type Description BookUninstallValidator::$bookOutlineStorage protected property The book outline storage. BookUninstallValidator::

BookSettingsForm::getFormId

public BookSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/book/src/Form/BookSettingsForm.php, line 16 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form Code public function getFormId() { return 'book_admin_settings'; }

BookSettingsForm::buildForm

public BookSettingsForm::buildForm(array $form, FormStateInterface $form_state) 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 ConfigFormBase::buildForm File core/modules/book/src/Form/BookSettingsForm.php, line 30 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form

BookSettingsForm::getEditableConfigNames

protected BookSettingsForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/book/src/Form/BookSettingsForm.php, line 23 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form Code protected function getEditableConfigNam

BookSettingsForm

Configure book settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\book\Form\BookSettingsForm File core/modules/book/src/Form/BookSettingsForm.php, line 11 Namespace Drupal\book\Form Members Name M

BookRemoveForm::getQuestion

public BookRemoveForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/book/src/Form/BookRemoveForm.php, line 87 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function getQuestion() { return $this->t('Are you sure you want to remove %title from the book hierarchy?', array('%title' => $this-

BookRemoveForm::submitForm

public BookRemoveForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/book/src/Form/BookRemoveForm.php, line 101 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function submitForm(array &

BookRemoveForm::__construct

public BookRemoveForm::__construct(BookManagerInterface $book_manager) Constructs a BookRemoveForm object. Parameters \Drupal\book\BookManagerInterface $book_manager: The book manager. File core/modules/book/src/Form/BookRemoveForm.php, line 36 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function __construct(BookManagerInterface $book_manager) { $this->bookManager = $book_manager; }

BookRemoveForm::getFormId

public BookRemoveForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/book/src/Form/BookRemoveForm.php, line 52 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code public function getFormId() { return 'book_remove_form'; }

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