function view_revisions_8000 in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 modules/views_revisions/views_revisions.install \view_revisions_8000()
- 1.x modules/views_revisions/views_revisions.install \view_revisions_8000()
Implements hook_update().
File
- modules/
view_revisions/ view_revisions.install, line 44 - view_revisions install hooks.
Code
function view_revisions_8000(&$sandbox) {
$entityTypeManager = \Drupal::entityTypeManager();
$cert_storage = $entityTypeManager
->getStorage('config_entity_revisions_type');
$entity = $cert_storage
->create([
'id' => 'view_revisions',
]);
$entity
->save();
}