Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityContentBase.php

function EntityContentBase::getHighestId

Overrides HighestIdInterface::getHighestId

2 calls to EntityContentBase::getHighestId()
EntityUser::getHighestId in core/modules/user/src/Plugin/migrate/destination/EntityUser.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.
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 395

Class

EntityContentBase
Provides destination class for all content entities lacking a specific class.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function getHighestId() {
    $values = $this->storage
        ->getQuery()
        ->accessCheck(FALSE)
        ->sort($this->getKey('id'), 'DESC')
        ->range(0, 1)
        ->execute();
    return (int) current($values);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal