Template suggestions should be based on the template name, not layout id

Created on 15 November 2023, about 1 year ago
Updated 22 December 2023, about 1 year ago

Template suggestions should be based on the template name, not layout id.
Consider this layout definition:

teaserlinkperson:
  label: Teaser Link person
  category: Mytheme
  class: '\Drupal\ds\Plugin\DsLayout'
  type: partial
  path: layout/teasers
  template: teaser--link--person
  regions:
    main:
      label: Main

DS will generate template suggestions based on "teaserlinkperson" instead of the actual template "teaser--link--person".

See attached patch to correct this.

🐛 Bug report
Status

Closed: duplicate

Version

3.15

Component

Code

Created by

🇧🇪Belgium weseze

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024