8.5.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.0.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.1.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.2.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.3.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.4.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)
8.6.x TypedDataTrait.php TypedDataTrait::setTypedDataManager(TypedDataManagerInterface $typed_data_manager)

Sets the typed data manager.

Parameters

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

Return value

$this

1 method overrides TypedDataTrait::setTypedDataManager()
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;
}