3 namespace Drupal\Core\Entity\Entity;
5 use Drupal\Core\Entity\EntityDisplayModeBase;
6 use Drupal\Core\Entity\EntityFormModeInterface;
9 * Defines the entity form mode configuration entity class.
11 * Form modes allow entity forms to be displayed differently depending on the
12 * context. For instance, the user entity form can be displayed with a set of
13 * fields on the 'profile' page (user edit page) and with a different set of
14 * fields (or settings) on the user registration page. Modules taking part in
15 * the display of the entity form (notably the Field API) can adjust their
16 * behavior depending on the requested form mode. An additional 'default' form
17 * mode is available for all entity types. For each available form mode,
18 * administrators can configure whether it should use its own set of field
19 * display settings, or just replicate the settings of the 'default' form mode,
20 * thus reducing the amount of form display configurations to keep track of.
22 * @see \Drupal\Core\Entity\EntityManagerInterface::getAllFormModes()
23 * @see \Drupal\Core\Entity\EntityManagerInterface::getFormModes()
26 * id = "entity_form_mode",
27 * label = @Translation("Form mode"),
40 class EntityFormMode extends EntityDisplayModeBase implements EntityFormModeInterface {