Mercurial > hg > cmmr2012-drupal-site
comparison modules/contrib/migrate_plus/src/DataFetcherPluginBase.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | 12f9dff5fda9 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate_plus; | |
4 | |
5 use Drupal\Core\Plugin\PluginBase; | |
6 use Symfony\Component\DependencyInjection\ContainerInterface; | |
7 | |
8 /** | |
9 * Defines a base data fetcher implementation. | |
10 * | |
11 * @see \Drupal\migrate_plus\Annotation\DataFetcher | |
12 * @see \Drupal\migrate_plus\DataFetcherPluginInterface | |
13 * @see \Drupal\migrate_plus\DataFetcherPluginManager | |
14 * @see plugin_api | |
15 */ | |
16 abstract class DataFetcherPluginBase extends PluginBase implements DataFetcherPluginInterface { | |
17 | |
18 /** | |
19 * {@inheritdoc} | |
20 */ | |
21 public function __construct(array $configuration, $plugin_id, $plugin_definition) { | |
22 parent::__construct($configuration, $plugin_id, $plugin_definition); | |
23 } | |
24 | |
25 /** | |
26 * {@inheritdoc} | |
27 */ | |
28 public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { | |
29 return new static($configuration, $plugin_id, $plugin_definition); | |
30 } | |
31 | |
32 } |