function ConfigEntityAdapter::getTypedDataManager

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getTypedDataManager()
  2. 8.9.x core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getTypedDataManager()
  3. 11.x core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::getTypedDataManager()

@todo Remove this in https://www.drupal.org/node/3011137.

Overrides TypedDataTrait::getTypedDataManager

1 call to ConfigEntityAdapter::getTypedDataManager()
ConfigEntityAdapter::getTypedConfigManager in core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php
Gets the typed config manager.

File

core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php, line 107

Class

ConfigEntityAdapter
Enhances EntityAdapter for config entities.

Namespace

Drupal\Core\Entity\Plugin\DataType

Code

public function getTypedDataManager() {
    if (empty($this->typedDataManager)) {
        $this->typedDataManager = \Drupal::service('config.typed');
    }
    return $this->typedDataManager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.