8.5.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.0.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.1.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.2.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.3.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.4.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()
8.6.x TypedDataTrait.php TypedDataTrait::getTypedDataManager()

Gets the typed data manager.

Return value

\Drupal\Core\TypedData\TypedDataManagerInterface The typed data manager.

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\TypedData

Code

public function getTypedDataManager() {
  if (empty($this->typedDataManager)) {
    $this->typedDataManager = \Drupal::typedDataManager();
  }
  return $this->typedDataManager;
}