Rename RendererInterface::renderPlain() to ::renderInIsolation()

Created on 24 June 2015, over 9 years ago
Updated 22 March 2024, 8 months ago

Problem/Motivation

::renderPlain() is a weird function name.

Proposed resolution

Quoting #2450993-4: Rendered Cache Metadata created during the main controller request gets lost โ†’ :

  • renderPlain() now actually means renderInIsolation() (i.e. start its own render stack) โ€” it originally meant "turn this render array into a plain string, and don't care about anything else". But it did that by starting a new stack, and then restoring the old one. So the "getting a plain string" part was only a symptom, what it really is about, is rendering in isolation.
  • Remaining tasks

    Do it.

    User interface changes

    None.

    API changes

    Rename RendererInterface::renderPlain() to ::renderInIsolation(), but with BC compatibility layer.

    Data model changes

    None.

    ๐Ÿ“Œ Task
    Status

    Fixed

    Version

    10.3 โœจ

    Component
    Renderย  โ†’

    Last updated 4 days ago

    Created by

    ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

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

    Merge Requests

    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