Drupal is a registered trademark of Dries Buytaert

easy_entity_field

3 sites No security coverage
View on drupal.org

Are you boring with too many field tables in your database?

When hundreds of data fields are added to the content node, and multi-version is enabled for the content node, the total number of field data tables and field multi-version tables created in the database would be double or even mort. In fact, it's ok to add some fields to the entity table.

The Easy entity base field module can add basic fields to the data table data_table of all content entities, such as: Node, User, block_content, etc. The added fields can be managed using form display and display which are build-in drupal core by default.

You can also add field types without UI in the core online, such as: Map, URI, File URI, Password, but they can only be storaged as data, and the form needs to be customized in the entity addition form.

Multi valued fields are not supported. Please use the core module Field for multi valued fields,Due to the problem that some field type setting (fieldSettingsForm) forms and storage (storageSettingsForm) forms cannot be used in Easy entity base field module, but could still reorganize the corresponding forms with modules such as: entity_reference and dynamic_entity_reference in module plug-ins.

If you are worried that too much field data in a table will affect performance, you need programmers to cooperate with the Field module in the core according to project requirements, or create custom fields.

Instructions:

1. Install the module normally;
2. Visit admin/config/content/easy-entity-field to enable the content type;
3. Access the Easy entity base field field management interface that enables the content type;
4. Exportable field configuration file: easy_entity_field.field.entity_type_id.field_name.yml, placed in a custom module, creates fields synchronously during installation.

Required patches for the module

If MAP and LINK fields are created, a warning will be displayed.

Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables() (line 602

Please use the patch:
https://www.drupal.org/files/issues/2023-09-29/3300404-48-map-field-failing-php-81.patch

你是否讨厌数据库中有太多的字段表呢?

当项目内容实体中添加了几百个数据字段,内容实体又启用了多版本,数据库中创建的字段数据表和字段多版本表的总数是字段的2倍以上,其实有些字段添加到实体的数据表中即可。

Easy entity base field模块可以为所有内容实体的数据表data_table中添基本字段,如:Node、User、block_content等,添加的字段可以使用核心默认的form display和display管理。

也可以在线添加核心中没有UI的字段类型,如:Map、URI、File URI、Password,但是只能当数据存储,表单需要在实体添加表单中自定义。

不支持多值字段,多值字段请使用核心模块Field,由于部分字段类型设置(fieldSettingsForm)表单和存储(storageSettingsForm)表单的问题无法在Easy entity base field中使用,可使用插件重组相应的表单,例如模块插件中的:entity_reference和dynamic_entity_reference。

如果担心一个表中有太多的字段数据影响性能,这就需要程序员根据项目需求与核心中Field模块合作使用,或是建立自定义字段。

使用方法:
1、正常安装模块;
2、访问admin/config/content/easy-entity-field,启用内容类型;
3、访问启用内容类型的Easy entity base field字段管理界面;
4、可导出字段配置文件:asy_entity_field.field.entity_type_id.field_name.yml,放置于自定义模块中,安装时同步创建字段。

Activity

Total releases
4
First release
May 2025
Latest release
5 months ago
Release cadence
50 days
Stability
75% stable

Release Timeline

Releases

Version Type Release date
3.1.2 Stable Sep 28, 2025
3.1.1 Stable May 2, 2025
3.1.x-dev Dev May 2, 2025
3.1.0 Stable May 2, 2025