viewField() doesn't consider that getCacheability() can be NULL

Created on 19 June 2024, 6 months ago
Updated 8 July 2024, 5 months ago

Problem/Motivation

    $cacheability = $computed_field_plugin->getCacheability($entity, $field_definition);
    $cacheability->applyTo($build['field']);

getCacheability can return NULL!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024