Skip to content

Commit

Permalink
Add update hook to install the new quick_form entity type on existing…
Browse files Browse the repository at this point in the history
… farmOS installations.
  • Loading branch information
wotnak committed Oct 23, 2023
1 parent 6657a88 commit 0f086d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- [Add update hook to install the new quick_form entity type on existing farmOS installations #738](https://github.com/farmOS/farmOS/pull/738)

## [2.2.1] 2023-10-09

### Fixed
Expand Down
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 0f086d8

Please sign in to comment.