function EntityDisplayModeBase::setTargetType
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::setTargetType()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::setTargetType()
- 11.x core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php \Drupal\Core\Entity\EntityDisplayModeBase::setTargetType()
Overrides EntityDisplayModeInterface::setTargetType
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayModeBase.php, line 79
Class
- EntityDisplayModeBase
- Base class for config entity types with settings for form and view modes.
Namespace
Drupal\Core\EntityCode
public function setTargetType($target_entity_type) {
$this->targetEntityType = $target_entity_type;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.