Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
dd06e6df
Commit
dd06e6df
authored
9 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2626476
by benjy: MigrationBuilder should have an interface
parent
1aa1fbe2
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/migrate/src/MigrationBuilder.php
+2
-9
2 additions, 9 deletions
core/modules/migrate/src/MigrationBuilder.php
core/modules/migrate/src/MigrationBuilderInterface.php
+27
-0
27 additions, 0 deletions
core/modules/migrate/src/MigrationBuilderInterface.php
with
29 additions
and
9 deletions
core/modules/migrate/src/MigrationBuilder.php
+
2
−
9
View file @
dd06e6df
...
...
@@ -13,7 +13,7 @@
/**
* Builds migration entities from migration templates.
*/
class
MigrationBuilder
{
class
MigrationBuilder
implements
MigrationBuilderInterface
{
/**
* The builder plugin manager.
...
...
@@ -33,14 +33,7 @@ public function __construct(MigratePluginManager $builder_manager) {
}
/**
* Builds migration entities from templates.
*
* @param array $templates
* The parsed templates (each of which is an array parsed from YAML), keyed
* by ID.
*
* @return \Drupal\migrate\Entity\MigrationInterface[]
* The migration entities derived from the templates.
* {@inheritdoc}
*/
public
function
createMigrations
(
array
$templates
)
{
/** @var \Drupal\migrate\Entity\MigrationInterface[] $migrations */
...
...
This diff is collapsed.
Click to expand it.
core/modules/migrate/src/MigrationBuilderInterface.php
0 → 100644
+
27
−
0
View file @
dd06e6df
<?php
/**
* @file
* Contains \Drupal\migrate\MigrationBuilderInterface.
*/
namespace
Drupal\migrate
;
/**
* The migration builder interface.
*/
interface
MigrationBuilderInterface
{
/**
* Builds migration entities from templates.
*
* @param array $templates
* The parsed templates (each of which is an array parsed from YAML), keyed
* by ID.
*
* @return \Drupal\migrate\Entity\MigrationInterface[]
* The migration entities derived from the templates.
*/
public
function
createMigrations
(
array
$templates
);
}
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