protected function ConfigEntityAdapter::getConfigTypedData in Drupal 8
Same name and namespace in other branches
- 9 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 142
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());
}