/**
* Context in which this entity will be used (e.g. 'display', 'form').
*
* @var string
*/
protected $displayContext;
The values are 'view' or 'form'.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | D8-incorrect-docs-EntityDisplayBase-2823809-3.patch | 493 bytes | pushpinderchauhan |
Comments
Comment #2
pushpinderchauhan commentedComment #3
pushpinderchauhan commentedComment #4
joachim commentedThanks for the patch! Looks good.
Comment #7
xjmI verified that the expected default for view displays is
'view'and not'display':I think I know where the confusion came from (in
EntityDisplayBase::init()):That sets
$extra_fields['display']if the context is'view', but$extra_fields['form']when the context is'form'.Committed a61efd8 and pushed to 8.3.x and 8.2.x. Thanks!