Initial Drupal 11 with DDEV setup
This commit is contained in:
54
vendor/chi-teck/drupal-code-generator/templates/_field/schema.twig
vendored
Normal file
54
vendor/chi-teck/drupal-code-generator/templates/_field/schema.twig
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user