You are here

private function FileInputExtensionMatchTrait::entityTypeManager in Lightning Media 8

Same name and namespace in other branches
  1. 8.4 src/FileInputExtensionMatchTrait.php \Drupal\lightning_media\FileInputExtensionMatchTrait::entityTypeManager()
  2. 8.2 src/FileInputExtensionMatchTrait.php \Drupal\lightning_media\FileInputExtensionMatchTrait::entityTypeManager()
  3. 8.3 src/FileInputExtensionMatchTrait.php \Drupal\lightning_media\FileInputExtensionMatchTrait::entityTypeManager()

Returns the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/FileInputExtensionMatchTrait.php, line 19

Class

FileInputExtensionMatchTrait
Implements InputMatchInterface for media types that use a file field.

Namespace

Drupal\lightning_media

Code

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