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
public function getTypedDataManager() { if (empty($this->typedDataManager)) { $this->typedDataManager = \Drupal::typedDataManager(); } return $this->typedDataManager; }
Please login to continue.