Defines a common interface for content entity form classes.
Hierarchy
- interface \Drupal\Core\Form\FormInterface
- interface \Drupal\Core\Form\BaseFormIdInterface
- interface \Drupal\Core\Entity\EntityFormInterface
- interface \Drupal\Core\Entity\ContentEntityFormInterface
- interface \Drupal\Core\Entity\EntityFormInterface
- interface \Drupal\Core\Form\BaseFormIdInterface
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. |
FormInterface::getFormId | public | function | Returns a unique string identifying the form. |
FormInterface::submitForm | public | function | Form submission handler. |
Please login to continue.