You are here

public function EntityDuplicateFormInterface::setSourceEntity in Entity API 8

Sets the source entity.

Parameters

\Drupal\Core\Entity\EntityInterface $source_entity: The source entity.

Return value

$this

File

src/Form/EntityDuplicateFormInterface.php, line 31

Class

EntityDuplicateFormInterface
Defines an interface for entity duplicate forms.

Namespace

Drupal\entity\Form

Code

public function setSourceEntity(EntityInterface $source_entity);