Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
migrate_file_to_media
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
migrate_file_to_media
Commits
bb8ffde1
Commit
bb8ffde1
authored
1 year ago
by
Vitalii Podoba
Browse files
Options
Downloads
Patches
Plain Diff
[
#3381498
] Fixed the variable type argument
parent
763dbde2
No related branches found
No related tags found
1 merge request
!35
[#3381498] Fixed the variable type argument
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/migrate/process/MediaFileCopy.php
+4
-4
4 additions, 4 deletions
src/Plugin/migrate/process/MediaFileCopy.php
with
4 additions
and
4 deletions
src/Plugin/migrate/process/MediaFileCopy.php
+
4
−
4
View file @
bb8ffde1
...
...
@@ -3,7 +3,7 @@
namespace
Drupal\migrate_file_to_media\Plugin\migrate\process
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Extension\ModuleHandler
;
use
Drupal\Core\Extension\ModuleHandler
Interface
;
use
Drupal\Core\File\FileSystemInterface
;
use
Drupal\Core\StreamWrapper\StreamWrapperManagerInterface
;
use
Drupal\crop\Entity\Crop
;
...
...
@@ -42,9 +42,9 @@ class MediaFileCopy extends FileCopy {
/**
* The module handler service.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandler
Interface
*/
protected
ModuleHandler
$moduleHandler
;
protected
ModuleHandler
Interface
$moduleHandler
;
/**
* The file repository.
...
...
@@ -70,7 +70,7 @@ class MediaFileCopy extends FileCopy {
/**
* {@inheritdoc}
*/
public
function
__construct
(
array
$configuration
,
$plugin_id
,
array
$plugin_definition
,
StreamWrapperManagerInterface
$stream_wrappers
,
FileSystemInterface
$file_system
,
MigrateProcessInterface
$download_plugin
,
ModuleHandler
$module_handler
,
FileRepositoryInterface
$file_repository
,
EntityTypeManagerInterface
$entityTypeManager
)
{
public
function
__construct
(
array
$configuration
,
$plugin_id
,
array
$plugin_definition
,
StreamWrapperManagerInterface
$stream_wrappers
,
FileSystemInterface
$file_system
,
MigrateProcessInterface
$download_plugin
,
ModuleHandler
Interface
$module_handler
,
FileRepositoryInterface
$file_repository
,
EntityTypeManagerInterface
$entityTypeManager
)
{
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
,
$stream_wrappers
,
$file_system
,
$download_plugin
);
$this
->
moduleHandler
=
$module_handler
;
$this
->
fileRepository
=
$file_repository
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment