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\FormCode
public function setSourceEntity(EntityInterface $source_entity);