function ConfigEntityAdapter::getConfigTypedData
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getConfigTypedData()
- 10 core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getConfigTypedData()
- 11.x core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getConfigTypedData()
Gets typed data for config entity.
Return value
\Drupal\Core\TypedData\ComplexDataInterface The typed data.
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ ConfigEntityAdapter.php, line 143
Class
- ConfigEntityAdapter
- Enhances EntityAdapter for config entities.
Namespace
Drupal\Core\Entity\Plugin\DataTypeCode
protected function getConfigTypedData() {
return $this->getTypedConfigManager()
->createFromNameAndData($this->entity
->getConfigDependencyName(), $this->entity
->toArray());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.