Log in
Model

Form

Magento\Eav\Model\Form

What it does

This abstract class provides a framework for handling EAV (Entity-Attribute-Value) forms in Magento 2.

Developers extend this class to create forms for entities with dynamic attributes, handling data extraction from requests, validation, and attribute rendering.

It manages form attributes, filters visible/invisible fields, and provides methods to validate, compact, restore, and output entity data.

Public Methods

  • setStore()
  • setEntity()
  • setEntityType()
  • setFormCode()
  • getStore()
  • getFormCode()
  • getEntityType()
  • getEntity()
  • getAttributes()
  • getAttribute()
  • getUserAttributes()
  • getSystemAttributes()
  • getAllowedAttributes()
  • prepareRequest()
  • extractData()
  • validateData()
  • compactData()
  • restoreData()
  • outputData()
  • resetEntityData()
  • setIsAjaxRequest()
  • getIsAjaxRequest()
  • initDefaultValues()
  • ignoreInvisible()