Skip to content

Commit

Permalink
Use FileUrlGeneratorInterface (#996)
Browse files Browse the repository at this point in the history
* Use FileUrlGeneratorInterface

* Use FileUrlGeneratorInterface
  • Loading branch information
seth-shaw-asu authored Nov 29, 2023
1 parent 4630439 commit c634164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin/Field/FieldFormatter/IslandoraImageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\File\FileUrlGenerator;
use Drupal\Core\File\FileUrlGeneratorInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter;
use Drupal\islandora\IslandoraUtils;
Expand Down Expand Up @@ -57,7 +57,7 @@ class IslandoraImageFormatter extends ImageFormatter {
* The image style storage.
* @param \Drupal\islandora\IslandoraUtils $utils
* Islandora utils.
* @param \Drupal\Core\File\FileUrlGenerator $file_url_generator
* @param \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator
* The File URL Generator.
*/
public function __construct(
Expand All @@ -71,7 +71,7 @@ public function __construct(
AccountInterface $current_user,
EntityStorageInterface $image_style_storage,
IslandoraUtils $utils,
FileUrlGenerator $file_url_generator
FileUrlGeneratorInterface $file_url_generator
) {
parent::__construct(
$plugin_id,
Expand Down

0 comments on commit c634164

Please sign in to comment.