function EntityBase::getTypedData
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getTypedData()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getTypedData()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getTypedData()
Overrides EntityInterface::getTypedData
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 588
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getTypedData() {
if (!isset($this->typedData)) {
$class = $this->getTypedDataClass();
$this->typedData = $class::createFromEntity($this);
}
return $this->typedData;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.