interface EntityDuplicateFormInterface in Entity API 8
Defines an interface for entity duplicate forms.
Hierarchy
- interface \Drupal\Core\Form\FormInterface
- interface \Drupal\Core\Form\BaseFormIdInterface
- interface \Drupal\Core\Entity\EntityFormInterface
- interface \Drupal\entity\Form\EntityDuplicateFormInterface
- interface \Drupal\Core\Entity\EntityFormInterface
- interface \Drupal\Core\Form\BaseFormIdInterface
Expanded class hierarchy of EntityDuplicateFormInterface
All classes that implement EntityDuplicateFormInterface
File
- src/
Form/ EntityDuplicateFormInterface.php, line 11
Namespace
Drupal\entity\FormView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseFormIdInterface:: |
public | function | Returns a string identifying the base form. | 5 |
EntityDuplicateFormInterface:: |
public | function | Gets the source entity. | |
EntityDuplicateFormInterface:: |
public | function | Sets the source entity. | |
EntityFormInterface:: |
public | function | Builds an updated entity object based upon the submitted form values. | 1 |
EntityFormInterface:: |
public | function | Gets the form entity. | 1 |
EntityFormInterface:: |
public | function | Determines which entity will be used by this form from a RouteMatch object. | 1 |
EntityFormInterface:: |
public | function | Gets the operation identifying the form. | 1 |
EntityFormInterface:: |
public | function | Form submission handler for the 'save' action. | 1 |
EntityFormInterface:: |
public | function | Sets the form entity. | 1 |
EntityFormInterface:: |
public | function | Sets the entity manager for this form. | 1 |
EntityFormInterface:: |
public | function | Sets the entity type manager for this form. | 1 |
EntityFormInterface:: |
public | function | Sets the module handler for this form. | 1 |
EntityFormInterface:: |
public | function | Sets the operation for this form. | 1 |
EntityFormInterface:: |
public | function | Sets the string translation service for this form. | |
FormInterface:: |
public | function | Form constructor. | 179 |
FormInterface:: |
public | function | Returns a unique string identifying the form. | 236 |
FormInterface:: |
public | function | Form submission handler. | 192 |
FormInterface:: |
public | function | Form validation handler. | 30 |