Blogs

EMAIL: info@example.com

Flocon de toile | Freelance Drupal: Automatically provide options to a list field type with Drupal 8

Drupal 8 has a multitude of field types to cover a large number of use cases and situations when it comes to structuring and modeling content. Among these, we have a List field type which, as its name suggests, allows us to configure an input field based on a list of predefined options. This list of options must be set manually in the field’s storage options at the time of creation. But we can also use this field based on a list of options that can be provided dynamically. Let’s look at how we need to proceed to have a field that allows us to choose from a list of dynamic options.