W3cubDocs

/Drupal 8

interface EntityFormInterface

Defines an interface for entity form classes.

Hierarchy

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 14

Namespace

Drupal\Core\Entity

Members

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFormInterface.php/interface/EntityFormInterface/8.1.x