- 🇳🇱Netherlands bbrala Netherlands
Hi! Thanks for working on this. I think we should try and find the reference from the parent as seen here: https://git.drupalcode.org/project/drupal/-/merge_requests/13004/diffs#c...
That makes it actually dynamic, right now you just do the same, but then split in two which i think doesnt add much value.
- 🇮🇳India Ishani Patel
Hello @bbrala,
Please check the code below and verify as I update those sections to use string_parts instead of string + regex:
core.entity_view_mode.*.*: type: config_entity label: 'Entity view mode settings' mapping: id: type: string_parts label: 'ID' # View mode IDs are in the form: entity_type.view_mode part_types: - type: string label: 'Entity type' pattern: '^[a-z0-9_]+$' - type: string label: 'View mode' pattern: '^[a-z0-9_]+$' core.entity_form_mode.*.*: type: config_entity label: 'Entity form mode settings' constraints: FullyValidatable: ~ mapping: id: type: string_parts label: 'ID' # Form mode IDs are in the form: entity_type.form_mode part_types: - type: string label: 'Entity type' pattern: '^[a-z0-9_]+$' - type: string label: 'Form mode' pattern: '^[a-z0-9_]+$' core.entity_view_display.*.*.*: type: config_entity label: 'Entity display' mapping: id: type: string_parts label: 'ID' # Display IDs are in the form: entity_type.bundle.view_mode part_types: - type: string label: 'Entity type' pattern: '^[a-z0-9_]+$' - type: string label: 'Bundle' pattern: '^[a-z0-9_]+$' - type: string label: 'View mode' pattern: '^[a-z0-9_]+$' core.entity_form_display.*.*.*: type: config_entity label: 'Entity form display' mapping: id: type: string_parts label: 'ID' # Form display IDs are in the form: entity_type.bundle.form_mode part_types: - type: string label: 'Entity type' pattern: '^[a-z0-9_]+$' - type: string label: 'Bundle' pattern: '^[a-z0-9_]+$' - type: string label: 'Form mode' pattern: '^[a-z0-9_]+$'
Let me know your thoughts.
Thanks!