function 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\DataType

Code

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.