function multiversion_install in Multiversion 8
Same name and namespace in other branches
- 8.2 multiversion.install \multiversion_install()
Implements hook_install().
File
- ./
multiversion.install, line 34
Code
function multiversion_install() {
// Create default workspace.
Workspace::create([
'machine_name' => 'live',
'label' => 'Live',
'type' => 'basic',
])
->save();
/** @var \Drupal\multiversion\MultiversionManagerInterface $manager */
$manager = \Drupal::getContainer()
->get('multiversion.manager');
$manager
->enableEntityTypes();
_multiversion_update_uuid_fields();
_multiversion_add_workspace_field_in_url_alias_table(TRUE);
}