Field Config Cardinality

Categories

Component ID

2879554

Component name

Field Config Cardinality

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

156

Component created

Component changed

Component body

Allows the cardinality of specific config fields to be overridden cardinality of Storage field.
(Field instance cardinality for drupal 8)

If you interest to reuse field beetween bundles, field config cardinality It allows two fields, one single and one multiple, and saves the information in the same table in the database. This reduces the number of tables per field in the database.

Example: field_dates, is posible to be multiple field on article content type, and reuse with single field on page content type, and the information is saved on same database table.

Tested:
Field text
Field Date
Field image
field file
Field reference

This module use template_preprocess_field_multiple_value_form. meanwhile this patch is not aplicated on core https://www.drupal.org/project/drupal/issues/2822460