You are here

abstract public function EntityDeleteFormTrait::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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()
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.
ContentEntityDeleteForm::logDeletionMessage in core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php

... See full list

File

core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 33
Contains \Drupal\Core\Entity\EntityDeleteFormTrait.

Class

EntityDeleteFormTrait
Provides a trait for an entity deletion form.

Namespace

Drupal\Core\Entity

Code

public abstract function getEntity();