This project is not covered by Drupal’s security advisory policy.

YAML Sandbox Example

The YAML Sandbox module provides a textarea at /yaml_sandbox that accepts YAML as input and then parses and displays the resulting PHP data. It uses the Drupal\Component\Serialization\Yaml class do to the parsing and thus provides an accurate representation how your YAML data will be represented in Drupal.

The module exists to help educate developers on the use of YAML within Drupal and allows them to map their YAML markup to PHP data structures and hopefully gain a better understanding of how the YAML format works.

The parsed YAML is echoed to the screen using the PHP var_dump() function. For even prettier results enable xdebug's pretty printing.

Note: This module doesn't provide any additional functionality that you would ever need on your production site. So install it in a Drupal 8 sandbox, or on your localhost.

Supporting organizations: 

Project information