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

Created on 15 November 2023, 8 months ago
Updated 22 December 2023, 6 months 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.69.0 2024