You are here

public function MediaTypeForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::__construct()

Constructs a new class instance.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $source_manager: Media source plugin manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Entity field manager service.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository: Entity display repository service.

File

core/modules/media/src/MediaTypeForm.php, line 56

Class

MediaTypeForm
Form controller for media type forms.

Namespace

Drupal\media

Code

public function __construct(PluginManagerInterface $source_manager, EntityFieldManagerInterface $entity_field_manager, EntityDisplayRepositoryInterface $entityDisplayRepository) {
  $this->sourceManager = $source_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityDisplayRepository = $entityDisplayRepository;
}