function MediaTypeForm::__construct
Same name in other branches
- 8.9.x core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::__construct()
- 10 core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::__construct()
- 11.x 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\mediaCode
public function __construct(PluginManagerInterface $source_manager, EntityFieldManagerInterface $entity_field_manager, EntityDisplayRepositoryInterface $entityDisplayRepository) {
$this->sourceManager = $source_manager;
$this->entityFieldManager = $entity_field_manager;
$this->entityDisplayRepository = $entityDisplayRepository;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.