Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataTrait.php \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager()
- 9 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.
14 calls to TypedDataTrait::getTypedDataManager()
- Context::getContextData in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Gets the context value as typed data object.
- Context::getContextValue in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Gets the context value.
- Context::hasContextValue in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Returns whether the context has a value.
- Context::setContextValue in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Sets the context value.
- ContextDefinition::getConstraintObjects in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Extracts an array of constraints for a context definition object.
1 method overrides TypedDataTrait::getTypedDataManager()
- 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;
}