Closed (fixed)
Project:
Brazilian IDs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
18 Dec 2021 at 19:02 UTC
Updated:
18 Feb 2022 at 11:59 UTC
Jump to comment: Most recent
In Drupal 9.0, the deprecated EntityManagerInterface has been replaced by EntityTypeManagerInterface in the StringFormatter's constructor. Since StringFormatter is the base class used for several formatters in this module, all of them are broken, because they are passing the removed EntityManager object to the parent's constructor.
The error happens by simply opening the "Manage display" form of a field configured with any of the provided formatters (CPF, CNPJ, and CPF or CNPJ). It may also happen when trying to view some field that is formatted with such formatters.
Replace EntityManagerInterface by EntityManagerTypeInterface.
None
None
None
| Comment | File | Size | Author |
|---|---|---|---|
| 1-Replacing-EntityManager-by-EntityTypeManager.patch | 5.97 KB | dbiscalchin |
Comments
Comment #2
pmichelazzoI can confirm the issue and the patch fix it.
Best.
Comment #3
bmagalhaes commentedThanks, dbiscalchin and Paulino