Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293641

Expand EntityViewMode with methods

$
0
0

Problem/Motivation

Part of meta-issue #2016679: [Meta] Expand Entity Type interfaces to provide methods.

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())

Remaining tasks

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Reroll the patch if it no longer applies.InstructionsDONE
Add automated testsSmall tests to make sure setters work properly. InstructionsDONE
Draft a change record for the API changesInstructions
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standardsInstructions

User interface changes

NONE

API changes

EntityDisplayModeInterface now uses setTargetEntityTypeId() and getTargetEntityTypeId() to get and set its $targetEntityType property.
The EntityDisplayModeBase class implements the EntityDisplayModeInterface class, and these changes are reflected there too.


Viewing all articles
Browse latest Browse all 293641

Trending Articles