Problem/Motivation
Part of meta-issue #2016679: [Meta] Expand Entity Type interfaces to provide methods, protect the properties.
API changes
EntityDisplayInterface has been adjusted with the following methods added:
getTargetEntityTypeId();
getMode();
getOriginalMode();
getDisplayBundle();
setDisplayBundle($bundle);
As a result all the internal implementation in EntityDisplayBase has been made protected (all the previously public methods accessed by those new functions).
Any code currently in Drupal Core that touched these public variables has been updated to use the new methods.
Original report by @plopesc
Part of meta-issue #2016679: [Meta] Expand Entity Type interfaces to provide methods, protect the properties.
See the detailed explanations there and look at the issues that already have patches or were commited.
Add get*, set* and additional methods as it makes sense to replace the public properties (e.g. isSomething() and something())