Mercurial > hg > isophonics-drupal-site
comparison modules/contrib/migrate_plus/src/Plugin/MigrationConfigEntityPluginManager.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate_plus\Plugin; | |
4 | |
5 use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator; | |
6 use Drupal\migrate\Plugin\MigrationPluginManager; | |
7 use Drupal\migrate_plus\Plugin\Discovery\ConfigEntityDiscovery; | |
8 | |
9 /** | |
10 * Plugin manager for migration plugins. | |
11 */ | |
12 class MigrationConfigEntityPluginManager extends MigrationPluginManager { | |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 protected function getDiscovery() { | |
18 if (!isset($this->discovery)) { | |
19 $discovery = new ConfigEntityDiscovery('migration'); | |
20 $this->discovery = new ContainerDerivativeDiscoveryDecorator($discovery); | |
21 } | |
22 return $this->discovery; | |
23 } | |
24 | |
25 } |