interface ConfirmFormInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface
Defines the behavior a confirmation form.
Hierarchy
- interface \Drupal\Core\Form\FormInterface
- interface \Drupal\Core\Form\ConfirmFormInterface
Expanded class hierarchy of ConfirmFormInterface
All classes that implement ConfirmFormInterface
2 files declare their use of ConfirmFormInterface
- ContentEntityConfirmFormBase.php in core/
lib/ Drupal/ Core/ Entity/ ContentEntityConfirmFormBase.php - Contains \Drupal\Core\Entity\ContentEntityConfirmFormBase.
- EntityConfirmFormBase.php in core/
lib/ Drupal/ Core/ Entity/ EntityConfirmFormBase.php - Contains \Drupal\Core\Entity\EntityConfirmFormBase.
File
- core/
lib/ Drupal/ Core/ Form/ ConfirmFormInterface.php, line 13 - Contains \Drupal\Core\Form\ConfirmFormInterface.
Namespace
Drupal\Core\FormView source
interface ConfirmFormInterface extends FormInterface {
/**
* Returns the question to ask the user.
*
* @return string
* The form question. The page title will be set to this value.
*/
public function getQuestion();
/**
* Returns the route to go to if the user cancels the action.
*
* @return \Drupal\Core\Url
* A URL object.
*/
public function getCancelUrl();
/**
* Returns additional text to display as a description.
*
* @return string
* The form description.
*/
public function getDescription();
/**
* Returns a caption for the button that confirms the action.
*
* @return string
* The form confirmation text.
*/
public function getConfirmText();
/**
* Returns a caption for the link which cancels the action.
*
* @return string
* The form cancellation text.
*/
public function getCancelText();
/**
* Returns the internal name used to refer to the confirmation item.
*
* @return string
* The internal form name.
*/
public function getFormName();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfirmFormInterface:: |
public | function | Returns a caption for the link which cancels the action. | 3 |
ConfirmFormInterface:: |
public | function | Returns the route to go to if the user cancels the action. | 28 |
ConfirmFormInterface:: |
public | function | Returns a caption for the button that confirms the action. | 3 |
ConfirmFormInterface:: |
public | function | Returns additional text to display as a description. | 3 |
ConfirmFormInterface:: |
public | function | Returns the internal name used to refer to the confirmation item. | 3 |
ConfirmFormInterface:: |
public | function | Returns the question to ask the user. | 28 |
FormInterface:: |
public | function | Form constructor. | 157 |
FormInterface:: |
public | function | Returns a unique string identifying the form. | 212 |
FormInterface:: |
public | function | Form submission handler. | 167 |
FormInterface:: |
public | function | Form validation handler. | 20 |