You are here

public static function Drupal::typedDataManager in Drupal 8

Same name and namespace in other branches
  1. 9 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()

3 calls to Drupal::typedDataManager()
DrupalTest::testTypedDataManager in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the typedDataManager() method.
MapDataNormalizerTest::setUp in core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php
TypedDataTrait::getTypedDataManager in core/lib/Drupal/Core/TypedData/TypedDataTrait.php
Gets the typed data manager.

File

core/lib/Drupal.php, line 531
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function typedDataManager() {
  return static::getContainer()
    ->get('typed_data_manager');
}