Improve UI texts for Twig development settings

Created on 12 May 2023, about 1 year ago

Problem/Motivation

โœจ Make it easier for theme builders to enable Twig debugging and disable render cache Fixed adds a new UI for enabling development settings.

The UI text says the following:

These settings should only be enabled on development environments and never on production.

However, many users of Drupal do not have a separate development and production environments.

Proposed resolution

Instead of guiding users using this specific use case, we should convert this text to explain what is the consequence of enabling these settings, e.g. reduced performance.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Themeย  โ†’

Last updated about 4 hours ago

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland lauriii Finland

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

Comments & Activities

  • Issue created by @lauriii
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium Wim Leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Related:

    +++ b/core/modules/system/src/Form/DevelopmentSettingsForm.php
    @@ -0,0 +1,152 @@
    +      '#description' => $this->t('Disables render cache, dynamic page cache, and page cache.'),
    

    รœber nitโ€ฆ ๐Ÿ™ˆ

    s/dynamic page cache/Dynamic Page Cache/

    s/page cache/Page Cache/

    โ€ฆ because they're module names? That's also how they're capitalized in example.settings.local.php.

    OTOH I like this better โ€ฆ because then it's consistent with "render cache". Maybe we should just lowercase them everywhere instead?

Production build 0.69.0 2024