function TypedDataTrait::setTypedDataManager

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::setTypedDataManager()
  2. 10 core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::setTypedDataManager()
  3. 11.x core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::setTypedDataManager()

Sets the typed data manager.

Parameters

\Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager: The typed data manager.

Return value

$this

2 methods override TypedDataTrait::setTypedDataManager()
ConfigEntityAdapter::setTypedDataManager in core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php
@todo Remove this in https://www.drupal.org/node/3011137.
Element::setTypedDataManager in core/lib/Drupal/Core/Config/Schema/Element.php
Sets the typed config manager.

File

core/lib/Drupal/Core/TypedData/TypedDataTrait.php, line 25

Class

TypedDataTrait
Wrapper methods for classes that needs typed data manager object.

Namespace

Drupal\Core\TypedData

Code

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

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