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

CommentFileSizeAuthor
#6 computed_field-3455750-1.patch736 bytesjagraj_singh_gill
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joachim created an issue. See original summary.

kalpanajaiswal made their first commit to this issue’s fork.

kalpanajaiswal’s picture

Raised the MR with condition.

kalpanajaiswal’s picture

Status: Active » Needs review
jagraj_singh_gill’s picture

StatusFileSize
new736 bytes

Patch to check the truthy value.

jagraj_singh_gill’s picture

According to @joachim 's suggestion instead of checking the instance I have applied the condition to check the truthy value. I have placed the MR , please review once. Thanks !

  • joachim committed ca2488ee on 4.0.x
    Issue #3455750 by kalpanajaiswal, jagraj_singh_gill: Fixed viewField()...
joachim’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.