function workbench_access_update_8003 in Workbench Access 8
Create the new access scheme entity type.
File
- ./
workbench_access.install, line 35 - Install, update and uninstall functions for the Workbench Access module.
Code
function workbench_access_update_8003() {
$entity_manager = \Drupal::entityTypeManager();
$update_manager = \Drupal::entityDefinitionUpdateManager();
// Install 'access_scheme' config entity.
$entity_manager
->clearCachedDefinitions();
$type = $entity_manager
->getDefinition('access_scheme');
$update_manager
->installEntityType($type);
}