You are here

public function ConfigEntityRevisionsConfigTrait::__wakeup in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x src/ConfigEntityRevisionsConfigTrait.php \Drupal\config_entity_revisions\ConfigEntityRevisionsConfigTrait::__wakeup()

Restore the entity type manager after deserialisation.

File

src/ConfigEntityRevisionsConfigTrait.php, line 21

Class

ConfigEntityRevisionsConfigTrait

Namespace

Drupal\config_entity_revisions

Code

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