function TypedDataTrait::getTypedDataManager
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager()
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager()
- 10 core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager()
Gets the typed data manager.
Return value
\Drupal\Core\TypedData\TypedDataManagerInterface The typed data manager.
2 methods override TypedDataTrait::getTypedDataManager()
- ConfigEntityAdapter::getTypedDataManager in core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ ConfigEntityAdapter.php - @todo Remove this in https://www.drupal.org/node/3011137.
- Element::getTypedDataManager in core/
lib/ Drupal/ Core/ Config/ Schema/ Element.php - Gets the typed configuration manager.
File
-
core/
lib/ Drupal/ Core/ TypedData/ TypedDataTrait.php, line 36
Class
- TypedDataTrait
- Wrapper methods for classes that needs typed data manager object.
Namespace
Drupal\Core\TypedDataCode
public function getTypedDataManager() {
if (empty($this->typedDataManager)) {
$this->typedDataManager = \Drupal::typedDataManager();
}
return $this->typedDataManager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.