You are here

interface EntityDuplicateFormInterface in Entity API 8

Defines an interface for entity duplicate forms.

Hierarchy

Expanded class hierarchy of EntityDuplicateFormInterface

All classes that implement EntityDuplicateFormInterface

File

src/Form/EntityDuplicateFormInterface.php, line 11

Namespace

Drupal\entity\Form
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
BaseFormIdInterface::getBaseFormId public function Returns a string identifying the base form. 5
EntityDuplicateFormInterface::getSourceEntity public function Gets the source entity.
EntityDuplicateFormInterface::setSourceEntity public function Sets the source entity.
EntityFormInterface::buildEntity public function Builds an updated entity object based upon the submitted form values. 1
EntityFormInterface::getEntity public function Gets the form entity. 1
EntityFormInterface::getEntityFromRouteMatch public function Determines which entity will be used by this form from a RouteMatch object. 1
EntityFormInterface::getOperation public function Gets the operation identifying the form. 1
EntityFormInterface::save public function Form submission handler for the 'save' action. 1
EntityFormInterface::setEntity public function Sets the form entity. 1
EntityFormInterface::setEntityManager Deprecated public function Sets the entity manager for this form. 1
EntityFormInterface::setEntityTypeManager public function Sets the entity type manager for this form. 1
EntityFormInterface::setModuleHandler public function Sets the module handler for this form. 1
EntityFormInterface::setOperation public function Sets the operation for this form. 1
EntityFormInterface::setStringTranslation public function Sets the string translation service for this form.
FormInterface::buildForm public function Form constructor. 179
FormInterface::getFormId public function Returns a unique string identifying the form. 236
FormInterface::submitForm public function Form submission handler. 192
FormInterface::validateForm public function Form validation handler. 30