W3cubDocs

/Drupal 8

protected property EntityViewDisplay::$displayContext

Context in which this entity will be used (e.g. 'display', 'form').

Type: string

Overrides EntityDisplayBase::$displayContext

File

core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php, line 39

Class

EntityViewDisplay
Configuration entity that contains display options for all components of a rendered entity in a given view mode.

Namespace

Drupal\Core\Entity\Entity

Code

protected $displayContext = 'view';

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Entity!EntityViewDisplay.php/property/EntityViewDisplay::displayContext/8.1.x