Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/migrate/src/Annotation/MigrateDestination.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate\Annotation; | |
4 | |
5 use Drupal\Component\Annotation\Plugin; | |
6 | |
7 /** | |
8 * Defines a migration destination plugin annotation object. | |
9 * | |
10 * Plugin Namespace: Plugin\migrate\destination | |
11 * | |
12 * For a working example, see | |
13 * \Drupal\migrate\Plugin\migrate\destination\UrlAlias | |
14 * | |
15 * @see \Drupal\migrate\Plugin\MigrateDestinationInterface | |
16 * @see \Drupal\migrate\Plugin\migrate\destination\DestinationBase | |
17 * @see \Drupal\migrate\Plugin\MigrateDestinationPluginManager | |
18 * @see \Drupal\migrate\Annotation\MigrateSource | |
19 * @see \Drupal\migrate\Annotation\MigrateProcessPlugin | |
20 * @see plugin_api | |
21 * | |
22 * @ingroup migration | |
23 * | |
24 * @Annotation | |
25 */ | |
26 class MigrateDestination extends Plugin { | |
27 | |
28 /** | |
29 * A unique identifier for the process plugin. | |
30 * | |
31 * @var string | |
32 */ | |
33 public $id; | |
34 | |
35 /** | |
36 * Whether requirements are met. | |
37 * | |
38 * If TRUE and a 'provider' key is present in the annotation then the | |
39 * default destination plugin manager will set this to FALSE if the | |
40 * provider (module/theme) doesn't exist. | |
41 * | |
42 * @var bool | |
43 */ | |
44 public $requirements_met = TRUE; | |
45 | |
46 /** | |
47 * Identifies the system handling the data the destination plugin will write. | |
48 * | |
49 * The destination plugin itself determines how the value is used. For | |
50 * example, Migrate Drupal's destination plugins expect destination_module to | |
51 * be the name of a module that must be installed on the destination. | |
52 * | |
53 * @var string | |
54 */ | |
55 public $destination_module; | |
56 | |
57 } |