Change record status: 
Project: 
Introduced in branch: 
11.4.x
Introduced in version: 
11.4.0
Description: 

Since #3127026: Not possible to override an entity type class multiple times, there are no more usages of the EntityTypeInterface::getOriginalClass method so it is now deprecated.

A new getDecoratedClasses method had been added in case your code needs to check for an entity type class.

Before

$entity_type->getOriginalClass() == $class_name

After

in_array($class_name, $entity_type->getDecoratedClasses(), TRUE)

The new method supports any number of overrides.

Impacts: 
Module developers