interface ContentEntityFormInterface

Defines a common interface for content entity form classes.

Hierarchy

File

core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php, line 11

Namespace

Drupal\Core\Entity

Members

Name Modifiers Type Description
BaseFormIdInterface::getBaseFormId public function Returns a string identifying the base form.
ContentEntityFormInterface::getFormDisplay public function Gets the form display.
ContentEntityFormInterface::getFormLangcode public function Gets the code identifying the active form language.
ContentEntityFormInterface::isDefaultFormLangcode public function Checks whether the current form language matches the entity one.
ContentEntityFormInterface::setFormDisplay public function Sets the form display.
ContentEntityFormInterface::validateForm public function Note that extending classes should not override this method to add entity validation logic, but define further validation constraints using the entity validation API and/or provide a new validation constraint if necessary. This is the only way to… Overrides FormInterface::validateForm
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.

© 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!ContentEntityFormInterface.php/interface/ContentEntityFormInterface/8.1.x