Skip to content
Snippets Groups Projects
Unverified Commit d67d9f32 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2987414 by axel.rutz: MediaTypeForm should type hint...

Issue #2987414 by axel.rutz: MediaTypeForm should type hint PluginManagerInterface, not MediaSourceManager
parent 045fcb5d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2,6 +2,7 @@
namespace Drupal\media;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\ReplaceCommand;
use Drupal\Core\Entity\EntityFieldManagerInterface;
......@@ -23,7 +24,7 @@ class MediaTypeForm extends EntityForm {
/**
* Media source plugin manager.
*
* @var \Drupal\media\MediaSourceManager
* @var \Drupal\Component\Plugin\PluginManagerInterface
*/
protected $sourceManager;
......@@ -37,12 +38,12 @@ class MediaTypeForm extends EntityForm {
/**
* Constructs a new class instance.
*
* @param \Drupal\media\MediaSourceManager $source_manager
* @param \Drupal\Component\Plugin\PluginManagerInterface $source_manager
* Media source plugin manager.
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
* Entity field manager service.
*/
public function __construct(MediaSourceManager $source_manager, EntityFieldManagerInterface $entity_field_manager) {
public function __construct(PluginManagerInterface $source_manager, EntityFieldManagerInterface $entity_field_manager) {
$this->sourceManager = $source_manager;
$this->entityFieldManager = $entity_field_manager;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment