
| Current Path : /var/www/html/store/web/modules/contrib/entity/src/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/entity/src/Form/EntityDuplicateFormInterface.php |
<?php
namespace Drupal\entity\Form;
use Drupal\Core\Entity\EntityFormInterface;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines an interface for entity duplicate forms.
*/
interface EntityDuplicateFormInterface extends EntityFormInterface {
/**
* Gets the source entity.
*
* This is the entity that was duplicated to populate the form entity.
*
* @return \Drupal\Core\Entity\EntityInterface
* The source entity.
*/
public function getSourceEntity();
/**
* Sets the source entity.
*
* @param \Drupal\Core\Entity\EntityInterface $source_entity
* The source entity.
*
* @return $this
*/
public function setSourceEntity(EntityInterface $source_entity);
}