Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
migrate_plus
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_plus
Commits
9ad86501
Commit
9ad86501
authored
3 years ago
by
Ivan Doroshenko
Committed by
Lucas Hedding
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3265411
: FileBlob - document configuration properties.
parent
996e4f18
No related branches found
No related tags found
3 merge requests
!66
Issue #3121204 by rodrigoaguilera, Matroskeen: Add ability to choose the...
,
!53
Issue #2787219: Added a test coverage for bundleless entities lookup.
,
!49
Issue #3265411: FileBlob - document configuration properties.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/migrate/process/FileBlob.php
+6
-7
6 additions, 7 deletions
src/Plugin/migrate/process/FileBlob.php
with
6 additions
and
7 deletions
src/Plugin/migrate/process/FileBlob.php
+
6
−
7
View file @
9ad86501
...
...
@@ -18,9 +18,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* - The binary blob data.
*
* Available configuration keys:
* - reuse:
true
*
*
@codingStandardsIgnoreStart
* - reuse:
(optional) Indicates whether to overwrite existing files. If TRUE,
*
then existing files won't be replaced, and previously copied files will be
*
reused. Defaults to FALSE.
*
* Examples:
* @code
...
...
@@ -57,7 +57,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* - @destination_path
* - @destination_blob
* @endcode
In the example above, it is necessary to manipulate the values before they
*
* In the example above, it is necessary to manipulate the values before they
* are processed by this plugin. This is because this plugin takes a binary blob
* and saves it as a file. In many cases, as in this example, the data is base64
* encoded and should be decoded first. In destination_blob, the incoming data
...
...
@@ -66,8 +67,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* constants to create the final path. The resulting values are then referenced
* as the source of the file_blob plugin.
*
* @codingStandardsIgnoreEnd
*
* @MigrateProcessPlugin(
* id = "file_blob"
* )
...
...
@@ -124,7 +123,7 @@ class FileBlob extends ProcessPluginBase implements ContainerFactoryPluginInterf
}
[
$destination
,
$blob
]
=
$value
;
// Determine if we going to overwrite existing files or not touch them.
// Determine if we
're
going to overwrite existing files or not touch them.
$replace
=
$this
->
getOverwriteMode
();
// Attempt to save the file to avoid calling file_prepare_directory() any
...
...
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