function EntityDeleteFormTrait::getEntity
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getEntity()
- 10 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getEntity()
- 11.x core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getEntity()
Gets the entity of this form.
Provided by \Drupal\Core\Entity\EntityForm.
Return value
\Drupal\Core\Entity\EntityInterface The entity.
14 calls to EntityDeleteFormTrait::getEntity()
- BlockDeleteForm::getDeletionMessage in core/
modules/ block/ src/ Form/ BlockDeleteForm.php - Gets the message to display to the user after deleting the entity.
- ContentEntityDeleteForm::buildForm in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - Form constructor.
- ContentEntityDeleteForm::getCancelUrl in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - Returns the route to go to if the user cancels the action.
- ContentEntityDeleteForm::getDeletionMessage in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - ContentEntityDeleteForm::getQuestion in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - Returns the question to ask the user.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php, line 28
Class
- EntityDeleteFormTrait
- Provides a trait for an entity deletion form.
Namespace
Drupal\Core\EntityCode
public abstract function getEntity();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.