field_ui.schema.yml

Same filename in other branches
  1. 9 core/modules/field_ui/config/schema/field_ui.schema.yml
  2. 8.9.x core/modules/field_ui/config/schema/field_ui.schema.yml
  3. 10 core/modules/field_ui/config/schema/field_ui.schema.yml
core/modules/field_ui/config/schema/field_ui.schema.yml

File

core/modules/field_ui/config/schema/field_ui.schema.yml

View source
  1. # Schema for configuration files of the Field UI module.
  2. field_ui.settings:
  3. type: config_object
  4. label: 'Field UI settings'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. field_prefix:
  9. type: string
  10. label: 'The prefix for new fields created via Field UI'
  11. constraints:
  12. Regex:
  13. # @see \Drupal\field\Entity\FieldStorageConfig::__construct()
  14. pattern: '/^[_a-z]+[_a-z0-9]*$/'
  15. message: "The %value prefix is not valid."
  16. Length:
  17. # The maximum length of the field name is 32 characters. This maximum
  18. # length also encompasses the length of the field_prefix, which is
  19. # capped at 30 characters here. By setting the field_ui.settings:field_prefix config
  20. # to its maximum length, only two characters will remain available
  21. # for the actual field name based on the above specified pattern.
  22. # @see \Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH
  23. # @see \Drupal\field\Entity\FieldStorageConfig::preSaveNew()
  24. max: 30

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.