Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

YAML Content

The YAML Content module is a content utility module to support defining content for import using a defined and maintainable YAML format. Using the module, it is possible to define a set of content across a number of content files for import or update depending on the scenario.
Various use cases for defining and importing content from a file include:

  • Content population
  • Content migration
  • Demo content

The format for YAML content files is hierarchical and closely parallels the Entity and Field API architecture. This gives it the flexibility to apply to nearly any entity type that may be defined in the system with extensibility to support the variety of field types that may be available.
 

Creating a YAML Content Event Subscriber

Create an event subscriber to alter or enhance content being imported.

Examples

Example code showing how to create different types of data using YAML Content 8.x-1.x

Field Templates - v8.x-1.x

A collection of templates to populate various field types using YAML Content.

YAML Content Import Events

These events are dispatched throughout the content import process and allow for customization of content or extension of the process.

Guide maintainers

slucero's picture
DamienMcKenna's picture