ConfirmFormBase::getCancelText

public ConfirmFormBase::getCancelText() Returns a caption for the link which cancels the action. Return value string The form cancellation text. Overrides ConfirmFormInterface::getCancelText File core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 27 Class ConfirmFormBase Provides an generic base class for a confirmation form. Namespace Drupal\Core\Form Code public function getCancelText() { return $this->t('Cancel'); }

ConfirmFormBase::buildForm

public ConfirmFormBase::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 FormInterface::buildForm File core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 41 Class ConfirmFormBase Provides an generic base class for a confirmation form. Namespace Drupal

ConfirmFormBase

Provides an generic base class for a confirmation form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterface File core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 8 Namespace Drupal\Core\Form Members Name Modifiers Type D

ConfirmDeleteMultiple::__construct

public ConfirmDeleteMultiple::__construct(CommentStorageInterface $comment_storage) Creates an new ConfirmDeleteMultiple form. Parameters \Drupal\comment\CommentStorageInterface $comment_storage: The comment storage. File core/modules/comment/src/Form/ConfirmDeleteMultiple.php, line 37 Class ConfirmDeleteMultiple Provides the comment multiple delete confirmation form. Namespace Drupal\comment\Form Code public function __construct(CommentStorageInterface $comment_storage) { $this->

ConfirmDeleteMultiple::submitForm

public ConfirmDeleteMultiple::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/comment/src/Form/ConfirmDeleteMultiple.php, line 115 Class ConfirmDeleteMultiple Provides the comment multiple delete confirmation form. Namespace Drupal\co

ConfirmDeleteMultiple::getQuestion

public ConfirmDeleteMultiple::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/comment/src/Form/ConfirmDeleteMultiple.php, line 60 Class ConfirmDeleteMultiple Provides the comment multiple delete confirmation form. Namespace Drupal\comment\Form Code public function getQuestion() { return $this->t('Are you sure you want to delete these c

ConfirmDeleteMultiple::getFormId

public ConfirmDeleteMultiple::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/comment/src/Form/ConfirmDeleteMultiple.php, line 53 Class ConfirmDeleteMultiple Provides the comment multiple delete confirmation form. Namespace Drupal\comment\Form Code public function getFormId() { return 'comment_multiple_delete_confirm'; }

ConfirmDeleteMultiple::getConfirmText

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

ConfirmDeleteMultiple::getCancelUrl

public ConfirmDeleteMultiple::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/comment/src/Form/ConfirmDeleteMultiple.php, line 67 Class ConfirmDeleteMultiple Provides the comment multiple delete confirmation form. Namespace Drupal\comment\Form Code public function getCancelUrl() { return new Url('comment.admin'); }

ConfirmDeleteMultiple::create

public static ConfirmDeleteMultiple::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 se