Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smart_date-3406232
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
smart_date-3406232
Commits
3371f571
Commit
3371f571
authored
2 years ago
by
Anne Bonham
Committed by
mandclu
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3298195
: smart_date:migrate doesn't work for media entities
parent
8c7ad6d1
No related branches found
Branches containing commit
Tags
7.x-1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Commands/SmartDateDrushCommands.php
+7
-1
7 additions, 1 deletion
src/Commands/SmartDateDrushCommands.php
with
7 additions
and
1 deletion
src/Commands/SmartDateDrushCommands.php
+
7
−
1
View file @
3371f571
...
...
@@ -52,9 +52,15 @@ class SmartDateDrushCommands extends DrushCommands {
}
$this
->
output
()
->
writeln
(
'Starting date migration.'
);
$entity_type
=
'type'
;
if
(
$entity
===
'media'
)
{
$entity_type
=
'bundle'
;
}
// Get all events.
$events
=
\Drupal
::
entityTypeManager
()
->
getStorage
(
$entity
)
->
loadByProperties
([
'
type
'
=>
$bundle
]);
->
loadByProperties
([
$entity_
type
=>
$bundle
]);
$utc
=
new
\DateTimeZone
(
'UTC'
);
...
...
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