Add post update hook to install the new quick_form entity type on existing farmOS installations #738

This commit is contained in:
wotnak 2023-10-23 15:58:48 +02:00 committed by Michael Stenta
parent e41a34858c
commit e0ca16cfd2
2 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- [Fix planting quick form creating empty quantities #737](https://github.com/farmOS/farmOS/pull/737)
- [Add post 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

View File

@ -0,0 +1,15 @@
<?php
/**
* @file
* Post update hooks for the farmOS Quick Form module.
*/
/**
* Install the new quick_form entity type.
*/
function farm_quick_post_update_install_quick_form_entity_type(&$sandbox) {
\Drupal::entityDefinitionUpdateManager()->installEntityType(
\Drupal::entityTypeManager()->getDefinition('quick_form')
);
}