HighestIdInterface.php

Same filename and directory in other branches
  1. 9 core/modules/migrate/src/Audit/HighestIdInterface.php
  2. 8.9.x core/modules/migrate/src/Audit/HighestIdInterface.php
  3. 10 core/modules/migrate/src/Audit/HighestIdInterface.php

Namespace

Drupal\migrate\Audit

File

core/modules/migrate/src/Audit/HighestIdInterface.php

View source
<?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();

}

Interfaces

Title Deprecated Summary
HighestIdInterface Defines an interface for destination and ID maps which track a highest ID.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.