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