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

Created on 19 June 2024, 11 days ago
Updated 24 June 2024, 7 days 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.69.0 2024