Check config before deleting it.
This commit is contained in:
parent
8c816e835b
commit
ac64b7ce27
|
@ -12,5 +12,7 @@ use Drupal\system\Entity\Action;
|
|||
*/
|
||||
function farm_group_post_update_uninstall_asset_group_action(&$sandbox) {
|
||||
$config = Action::load('asset_group_action');
|
||||
$config->delete();
|
||||
if (!empty($config)) {
|
||||
$config->delete();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,5 +12,7 @@ use Drupal\system\Entity\Action;
|
|||
*/
|
||||
function farm_location_post_update_uninstall_asset_move_action(&$sandbox) {
|
||||
$config = Action::load('asset_move_action');
|
||||
$config->delete();
|
||||
if (!empty($config)) {
|
||||
$config->delete();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue