You are here

public function ConfigEntityRevisionsConfigEntityTrait::updateLoadedRevisionId in Config Entity Revisions 8.2

Updates the loaded Revision ID with the revision ID.

This method should not be used, it could unintentionally cause the original revision ID property value to be lost.

@internal

Return value

$this

File

src/ConfigEntityRevisionsConfigEntityTrait.php, line 371

Class

ConfigEntityRevisionsConfigEntityTrait
Trait ConfigEntityRevisionsConfigEntityTrait.

Namespace

Drupal\config_entity_revisions

Code

public function updateLoadedRevisionId() {
  $this->loadedRevisionId = $this
    ->getRevisionId() ?: $this->loadedRevisionId;
  return $this;
}