You are here

function view_revisions_8000 in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8.2 modules/view_revisions/view_revisions.install \view_revisions_8000()
  2. 8 modules/views_revisions/views_revisions.install \view_revisions_8000()

Implements hook_update.

File

modules/views_revisions/views_revisions.install, line 35

Code

function view_revisions_8000(&$sandbox) {
  $entityTypeManager = \Drupal::entityTypeManager();
  $cert_storage = $entityTypeManager
    ->getStorage('config_entity_revisions_type');
  $entity = $cert_storage
    ->create([
    'id' => 'views_revisions',
  ]);
  $entity
    ->save();
}