function EntityDisplayModeInterface::setTargetType
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface::setTargetType()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface::setTargetType()
- 11.x core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface::setTargetType()
Set the entity type this display mode is used for.
Parameters
string $target_entity_type: The target entity type for this display mode.
Return value
$this
1 method overrides EntityDisplayModeInterface::setTargetType()
- EntityDisplayModeBase::setTargetType in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayModeBase.php - Set the entity type this display mode is used for.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayModeInterface.php, line 28
Class
- EntityDisplayModeInterface
- Provides an interface for entity types that hold form and view mode settings.
Namespace
Drupal\Core\EntityCode
public function setTargetType($target_entity_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.