function EntityContentBase::getHighestId
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::getHighestId()
- 8.9.x 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
2 methods override EntityContentBase::getHighestId()
- EntityRevision::getHighestId in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityRevision.php - EntityUser::getHighestId in core/
modules/ user/ src/ Plugin/ migrate/ destination/ EntityUser.php
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php, line 389
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.