You are here

public function BookRemoveForm::getDescription in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/book/src/Form/BookRemoveForm.php \Drupal\book\Form\BookRemoveForm::getDescription()

Returns additional text to display as a description.

Return value

string The form description.

Overrides ConfirmFormBase::getDescription

File

core/modules/book/src/Form/BookRemoveForm.php, line 72
Contains \Drupal\book\Form\BookRemoveForm.

Class

BookRemoveForm
Remove form for book module.

Namespace

Drupal\book\Form

Code

public function getDescription() {
  $title = array(
    '%title' => $this->node
      ->label(),
  );
  if ($this->node->book['has_children']) {
    return $this
      ->t('%title has associated child pages, which will be relocated automatically to maintain their connection to the book. To recreate the hierarchy (as it was before removing this page), %title may be added again using the Outline tab, and each of its former child pages will need to be relocated manually.', $title);
  }
  else {
    return $this
      ->t('%title may be added to hierarchy again using the Outline tab.', $title);
  }
}