Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/migrate/src/Audit/HighestIdInterface.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
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 } |