public TypedDataTrait::getTypedDataManager()
Gets the typed data manager.
Return value
\Drupal\Core\TypedData\TypedDataManagerInterface The typed data 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\TypedData
Code
1 2 3 4 5 6 7 | public function getTypedDataManager() { if ( empty ( $this ->typedDataManager)) { $this ->typedDataManager = \Drupal::typedDataManager(); } return $this ->typedDataManager; } |
Please login to continue.