public static function Drupal::typedDataManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal.php \Drupal::typedDataManager()
Returns the typed data manager service.
Use the typed data manager service for creating typed data objects.
Return value
\Drupal\Core\TypedData\TypedDataManagerInterface The typed data manager.
See also
\Drupal\Core\TypedData\TypedDataManager::create()
2 calls to Drupal::typedDataManager()
- DrupalTest::testTypedDataManager in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the typedDataManager() method.
- TypedDataTrait::getTypedDataManager in core/
lib/ Drupal/ Core/ TypedData/ TypedDataTrait.php - Gets the typed data manager.
File
- core/
lib/ Drupal.php, line 484 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function typedDataManager() {
return static::getContainer()
->get('typed_data_manager');
}