Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/migrate/src/Audit/HighestIdInterface.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\migrate\Audit; |
Chris@0 | 4 |
Chris@0 | 5 /** |
Chris@0 | 6 * Defines an interface for destination and ID maps which track a highest ID. |
Chris@0 | 7 * |
Chris@0 | 8 * When implemented by destination plugins, getHighestId() should return the |
Chris@0 | 9 * highest ID of the destination entity type that exists in the system. So, for |
Chris@0 | 10 * example, the entity:node plugin should return the highest node ID that |
Chris@0 | 11 * exists, regardless of whether it was created by a migration. |
Chris@0 | 12 * |
Chris@0 | 13 * When implemented by an ID map, getHighestId() should return the highest |
Chris@0 | 14 * migrated ID of the destination entity type. |
Chris@0 | 15 */ |
Chris@0 | 16 interface HighestIdInterface { |
Chris@0 | 17 |
Chris@0 | 18 /** |
Chris@0 | 19 * Returns the highest ID tracked by the implementing plugin. |
Chris@0 | 20 * |
Chris@0 | 21 * @return int |
Chris@0 | 22 * The highest ID. |
Chris@0 | 23 */ |
Chris@0 | 24 public function getHighestId(); |
Chris@0 | 25 |
Chris@0 | 26 } |