You are here

public function ConfigEntityRevisionsConfigEntityTrait::__wakeup in Config Entity Revisions 8.2

Restore the entity type manager after deserialisation.

File

src/ConfigEntityRevisionsConfigEntityTrait.php, line 90

Class

ConfigEntityRevisionsConfigEntityTrait
Trait ConfigEntityRevisionsConfigEntityTrait.

Namespace

Drupal\config_entity_revisions

Code

public function __wakeup() {
  $this->entityTypeManager = \Drupal::service('entity_type.manager');
}