TypedDataTrait::getTypedDataManager

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;
}
doc_Drupal
2016-10-29 09:50:15
Comments
Leave a Comment

Please login to continue.