Add post update hook to install the new quick_form entity type on existing farmOS installations #738
This commit is contained in:
parent
e41a34858c
commit
e0ca16cfd2
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- [Fix planting quick form creating empty quantities #737](https://github.com/farmOS/farmOS/pull/737)
|
- [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
|
## [2.2.1] 2023-10-09
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue