Avoid #prefix and #suffix in buildRegions(), use #theme_wrappers instead

Created on 27 June 2016, over 8 years ago
Updated 27 September 2023, over 1 year ago

Problem/Motivation

The currently used #prefix and #suffix at the $build[$region] should be avoided. This practice has the possibility that something goes wrong (mistyped/accidentally missing opening or closing tags) and it's impossible to add new attributes (even classes) to the wrapper element without setting #prefix again. If somebody doesn't need the wrapper, he/she has to unset #prefix and suffix too.

Proposed resolution

Use #theme_wrappers instead of the current solution

Remaining tasks

User interface changes

Nothing.

API changes

Nothing.

Data model changes

Nothing.

πŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary huzooka Hungary πŸ‡­πŸ‡ΊπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Quick fix

    Very small and simple change. Preferred over Quickfix.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024