Module Description
Multivaluefield Multivaluefield (Multiple values field) is a drupal field plugin, allow to add multiple values on one field.

Drupal 9 ready. Compatible with feeds.

Examples Add / Create node programmatically with a "Multivaluefield" field
Example 1. \Drupal\node\Entity\Node::create(array( 'type' => 'page', 'title' => 'Mvf testing page', 'status' => 1, 'field_mvf' => [ 'index' => 'Test index 1', '0' => "Fields Value 1", '1' => "Fields Value 2", ], ))->save(); Example 2. (With $nid = Previously created node ID)

$entity = \Drupal\node\Entity\Node::load($nid); $values = [ 'index' => 'Test index 2', '0' => "Fields Value 3", '1' => "Fields Value 4", ]; $entity->set('field_mvf', [$values, $values]); $entity->save();Similar Projects - Paragraphs (https://www.drupal.org/project/paragraphs) - Field collection (https://www.drupal.org/project/field_collection)

Different from the Paragraphs and Field collection
Lite-weight Store all values in the same field (JSON) Field configuration is stored on field storage configuration. No need to create separate configurations ....

Project Usage
62
Creation Date
Changed Date
Security Covered
Not Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of adding multiple values to a single field in Drupal, specifically focusing on compatibility with Drupal 9 and feeds.
Data Name
multivaluefield

OPENAI CHATBOT

OPENAI CHATBOT

08:24:52
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.