You are here

public function Workspace::getUpdateSeq in Multiversion 8

Returns the last sequence ID in the workspace's sequence index.

Return value

float

Overrides WorkspaceInterface::getUpdateSeq

File

src/Entity/Workspace.php, line 176

Class

Workspace
The workspace entity class.

Namespace

Drupal\multiversion\Entity

Code

public function getUpdateSeq() {
  return \Drupal::service('multiversion.entity_index.sequence')
    ->useWorkspace($this
    ->id())
    ->getLastSequenceId();
}