Mercurial > hg > cmmr2012-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/migrate/src/Audit/HighestIdInterface.php Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,26 @@ +<?php + +namespace Drupal\migrate\Audit; + +/** + * Defines an interface for destination and ID maps which track a highest ID. + * + * When implemented by destination plugins, getHighestId() should return the + * highest ID of the destination entity type that exists in the system. So, for + * example, the entity:node plugin should return the highest node ID that + * exists, regardless of whether it was created by a migration. + * + * When implemented by an ID map, getHighestId() should return the highest + * migrated ID of the destination entity type. + */ +interface HighestIdInterface { + + /** + * Returns the highest ID tracked by the implementing plugin. + * + * @return int + * The highest ID. + */ + public function getHighestId(); + +}