function EntityDisplayBase::setTargetBundle
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::setTargetBundle()
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::setTargetBundle()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::setTargetBundle()
Overrides EntityDisplayInterface::setTargetBundle
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 245
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function setTargetBundle($bundle) {
$this->set('bundle', $bundle);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.