You are here

private function ValidationConstraintMatchTrait::typedDataManager in Lightning Media 8.4

Same name and namespace in other branches
  1. 8 src/ValidationConstraintMatchTrait.php \Drupal\lightning_media\ValidationConstraintMatchTrait::typedDataManager()
  2. 8.2 src/ValidationConstraintMatchTrait.php \Drupal\lightning_media\ValidationConstraintMatchTrait::typedDataManager()
  3. 8.3 src/ValidationConstraintMatchTrait.php \Drupal\lightning_media\ValidationConstraintMatchTrait::typedDataManager()

Returns the typed data manager.

Return value

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

File

src/ValidationConstraintMatchTrait.php, line 19

Class

ValidationConstraintMatchTrait
Implements InputMatchInterface for media types that use an embed code or URL.

Namespace

Drupal\lightning_media

Code

private function typedDataManager() {
  return @($this->typedDataManager ?: \Drupal::typedDataManager());
}