EntityDisplayModeBase::$targetEntityType

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::targetEntityType
  2. 10 core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::targetEntityType
  3. 11.x core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::targetEntityType

The entity type this form or view mode is used for.

This is not to be confused with EntityDisplayModeBase::$entityType which is inherited from Entity::$entityType.

Type: string

File

core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 35

Class

EntityDisplayModeBase
Base class for config entity types with settings for form and view modes.

Namespace

Drupal\Core\Entity

Code

protected $targetEntityType;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.