BookRemoveForm::getDescription

public 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 67

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);
  }
}
doc_Drupal
2016-10-29 08:48:30
Comments
Leave a Comment

Please login to continue.