Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
migrate_devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
migrate_devel
Commits
2f6700f5
Commit
2f6700f5
authored
May 20, 2017
by
Derimagia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fall back to plugin.manager.migration, see
#2880071
parent
cbeff372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
migrate_devel.drush.inc
migrate_devel.drush.inc
+9
-2
No files found.
migrate_devel.drush.inc
View file @
2f6700f5
...
...
@@ -42,16 +42,23 @@ function migrate_devel_drush_command_alter(&$command) {
* Clears cache for migrations and reverts config of migrations if needed.
*/
function
migrate_devel_rebuild_migrations
()
{
// @TODO: Remove this legacy support of migrate_plus.
// After #2752335, it uses the default Migrate Plugin Manager
/* @var $discovery CachedDiscoveryInterface */
if
(
\
Drupal
::
moduleHandler
()
->
moduleExists
(
'migrate_plus
'
))
{
if
(
\
Drupal
::
hasService
(
'plugin.manager.config_entity_migration
'
))
{
$discovery
=
\
Drupal
::
service
(
'plugin.manager.config_entity_migration'
);
migrate_devel_revert_migrate_config
();
}
else
{
$discovery
=
\
Drupal
::
service
(
'plugin.manager.migration'
);
}
// Reset cached migrations
$discovery
->
clearCachedDefinitions
();
/* @var $discovery CachedDiscoveryInterface */
if
(
\
Drupal
::
moduleHandler
()
->
moduleExists
(
'migrate_plus'
))
{
migrate_devel_revert_migrate_config
();
}
drush_log
(
dt
(
'Reset Cached Migrations'
),
LogLevel
::
DEBUG
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment