Convert a YAML snippet to a PHP formatted array at:admin/config/development/yaml2phpThis is a development helper module to generate a code snippet to copy-paste into your own code. Look at the example below.https://www.drupal.org/project/yaml2php