Prevent fatal error on accessing link if entityTypeManager is null

Created on 18 August 2023, over 1 year ago

Problem/Motivation

In some circumstances the entityTypeManager property is null, which leads to a fatal error when accessing the link.

Proposed resolution

Instead of accessing the entityTypeManager as a property, use the getter method in the ControllerBase, which will populate the entityTypeManager from the container if the property is null.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada mandclu

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

Comments & Activities

Production build 0.71.5 2024