X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2F_field%2Fschema.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2F_field%2Fschema.twig;h=e3612e61317f7fdf04114b4a66cba35e30bbf825;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig new file mode 100644 index 000000000..e3612e613 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig @@ -0,0 +1,50 @@ +{% if storage_settings %} +# Field storage. +field.storage_settings.{{ field_id }}: + type: mapping + label: Example storage settings + mapping: + foo: + type: string + label: Foo +{% endif %} +{% if instance_settings %} +# Field instance. +field.field_settings.{{ field_id }}: + type: mapping + label: Example field settings + mapping: + bar: + type: string + label: Bar +{% endif %} +# Default value. +field.value.{{ field_id }}: + type: mapping + label: Default value + mapping: +{% for subfield in subfields %} + {{ subfield.machine_name }}: + type: {{ subfield.type }} + label: {{ subfield.name }} +{% endfor %} +{% if widget_settings %} +# Field widget. +field.widget.settings.{{ field_id }}: + type: mapping + label: Example widget settings + mapping: + foo: + type: string + label: Foo +{% endif %} +{% if formatter_settings %} +# Field formatter. +field.formatter.settings.{{ field_id }}_default: + type: mapping + label: Example formatter settings + mapping: + foo: + type: string + label: Foo +{% endif %} \ No newline at end of file