Skip to content
Snippets Groups Projects
Commit 1f1c433d authored by Maksim Kulichkin's avatar Maksim Kulichkin
Browse files

Issue #3392372: Fix module installation for Drupal 10 compatibility

parent c0a32f52
No related branches found
No related tags found
1 merge request!14Issue #3392372: Fix module installation for Drupal 10 compatibility
......@@ -8,7 +8,7 @@ use Drupal\Core\Config\FileStorage;
function dosd_install() {
$entity_type = \Drupal::entityTypeManager()->getDefinition('user');
\Drupal::entityDefinitionUpdateManager()->updateEntityType($entity_type);
$storage = new FileStorage(drupal_get_path('module', 'dosd') . '/config');
$storage = new FileStorage(__DIR__ . '/config');
\Drupal::service('config.installer')->installOptionalConfig($storage);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment