Problem/Motivation

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.

Steps to reproduce

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.

Proposed resolution

Replace EntityManagerInterface by EntityManagerTypeInterface.

Remaining tasks

  • Provide a patch

User interface changes

None

API changes

None

Data model changes

None

Comments

dbiscalchin created an issue. See original summary.

pmichelazzo’s picture

I can confirm the issue and the patch fix it.

Best.

bmagalhaes’s picture

Status: Needs review » Fixed

Thanks, dbiscalchin and Paulino

Status: Fixed » Closed (fixed)

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