Removing #markup may cause errors or unexpected behaviours on websites

Created on 13 December 2019, over 4 years ago
Updated 14 August 2023, 11 months ago

In version 8.x-1.2 the #markup element is removed

$element[$delta] = array('#markup' => $output);

and replaced for

$element[$delta] = [
        '#type' => 'processed_text',
        '#text' => $output,
        '#format' => $item->format,
];

We did some checks to see if #markup was filled, but because that element did not exist anymore in the array we had an unexpected error. Maybe next time add some more info in the Release notes, because when you read them right now, you don't expect code changes like this.

I don't know in what category this fits, but I hope people can find this issue when they have the same problem.

πŸ“Œ Task
Status

Closed: won't fix

Version

1.2

Component

Documentation

Created by

πŸ‡³πŸ‡±Netherlands Krilo_89

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡ΊπŸ‡ΈUnited States markie Albuquerque, NM

    Closing as outdated. But thank you for the information. We should be better at documenting API changes.

Production build 0.69.0 2024