Skip to content

Commit

Permalink
Fix: Add update hook to install the new quick_form entity type on exi…
Browse files Browse the repository at this point in the history
…sting farmOS installations.
  • Loading branch information
wotnak committed Oct 23, 2023
1 parent 6657a88 commit 9183882
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/core/quick/farm_quick.install
@@ -0,0 +1,17 @@
<?php

/**
* @file
* Update functions for the farmOS Quick Form module.
*/

declare(strict_types=1);

/**
* Install the new quick_form entity type.
*/
function farm_quick_update_9001(): void {
\Drupal::entityDefinitionUpdateManager()->installEntityType(
\Drupal::entityTypeManager()->getDefinition('quick_form')
);
}

0 comments on commit 9183882

Please sign in to comment.