DeleteForm::getDescription

public DeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ContentEntityConfirmFormBase::getDescription File core/modules/comment/src/Form/DeleteForm.php, line 30 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code public function getDescription() { return $this->t('Any replies to this comment will be lost. This action cannot be undone.'); }

DeleteForm::getDeletionMessage

protected DeleteForm::getDeletionMessage() Overrides ContentEntityDeleteForm::getDeletionMessage File core/modules/comment/src/Form/DeleteForm.php, line 37 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code protected function getDeletionMessage() { return $this->t('The comment and all its replies have been deleted.'); }

DeleteForm::getConfirmText

public DeleteForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormBase::getConfirmText File core/modules/forum/src/Form/DeleteForm.php, line 46 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code public function getConfirmText() { return $this->t('Delete'); }

DeleteForm::getCancelUrl

public DeleteForm::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/path/src/Form/DeleteForm.php, line 66 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function getCancelUrl() { return new Url('path.admin_overview'); }

DeleteForm::getCancelUrl

public DeleteForm::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/forum/src/Form/DeleteForm.php, line 39 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code public function getCancelUrl() { return new Url('forum.overview'); }

DeleteForm::getCancelUrl

public DeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ContentEntityDeleteForm::getCancelUrl File core/modules/comment/src/Form/DeleteForm.php, line 15 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code public function getCancelUrl() { // Point to the entity of which this comment is a reply. return $this->entity->get('entity_id')->ent

DeleteForm::create

public static DeleteForm::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 conta

DeleteForm::buildForm

public DeleteForm::buildForm(array $form, FormStateInterface $form_state, TermInterface $taxonomy_term = 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/forum/src/Form/DeleteForm.php, line 53 Class DeleteForm Builds the form to delete a forum term. Namespa

DeleteForm::buildForm

public DeleteForm::buildForm(array $form, FormStateInterface $form_state, $pid = 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/path/src/Form/DeleteForm.php, line 73 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Cod

DeleteForm::$taxonomyTerm

The taxonomy term being deleted. Type: \Drupal\taxonomy\TermInterface File core/modules/forum/src/Form/DeleteForm.php, line 20 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code protected $taxonomyTerm;