function EntityContentBase::getHighestId
Same name in other branches
- 8.9.x core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::getHighestId()
- 10 core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::getHighestId()
- 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::getHighestId()
Overrides HighestIdInterface::getHighestId
1 call to EntityContentBase::getHighestId()
- EntityUser::getHighestId in core/
modules/ user/ src/ Plugin/ migrate/ destination/ EntityUser.php - Returns the highest ID tracked by the implementing plugin.
2 methods override EntityContentBase::getHighestId()
- EntityRevision::getHighestId in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityRevision.php - Returns the highest ID tracked by the implementing plugin.
- EntityUser::getHighestId in core/
modules/ user/ src/ Plugin/ migrate/ destination/ EntityUser.php - Returns the highest ID tracked by the implementing plugin.
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php, line 402
Class
- EntityContentBase
- Provides destination class for all content entities lacking a specific class.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
public function getHighestId() {
$values = $this->storage
->getQuery()
->accessCheck(FALSE)
->sort($this->getKey('id'), 'DESC')
->range(0, 1)
->execute();
return (int) current($values);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.