You are here

public function ConfigEntityAdapter::setTypedDataManager in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::setTypedDataManager()

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

Overrides TypedDataTrait::setTypedDataManager

File

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

Class

ConfigEntityAdapter
Enhances EntityAdapter for config entities.

Namespace

Drupal\Core\Entity\Plugin\DataType

Code

public function setTypedDataManager(TypedDataManagerInterface $typed_data_manager) {
  $this->typedDataManager = $typed_data_manager;
  if ($typed_data_manager instanceof TypedConfigManagerInterface) {
    $this->typedConfigManager = $typed_data_manager;
  }
  return $this;
}