You are here

public function EntityDuplicateFormInterface::getSourceEntity in Entity API 8

Gets the source entity.

This is the entity that was duplicated to populate the form entity.

Return value

\Drupal\Core\Entity\EntityInterface The source entity.

File

src/Form/EntityDuplicateFormInterface.php, line 21

Class

EntityDuplicateFormInterface
Defines an interface for entity duplicate forms.

Namespace

Drupal\entity\Form

Code

public function getSourceEntity();