Skip to content

Commit

Permalink
fix: AU-xxx: Fix site install crash
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarimysteerio authored Nov 16, 2023
1 parent a6fa1da commit d68cda7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function grants_industries_entity_type_alter(array &$entity_types): void {
// Override the translation handler so that we can prevent users
// from deleting a translation if they are not allowed
// to delete the original node or term.
$entity_types['node']->setHandlerClass('translation', 'Drupal\grants_industries\CustomNodeTranslationHandler');
$entity_types['taxonomy_term']->setHandlerClass('translation', 'Drupal\grants_industries\CustomTermTranslationHandler');
$entity_types['node']?->setHandlerClass('translation', 'Drupal\grants_industries\CustomNodeTranslationHandler');
$entity_types['taxonomy_term']?->setHandlerClass('translation', 'Drupal\grants_industries\CustomTermTranslationHandler');
}

/**
Expand Down

0 comments on commit d68cda7

Please sign in to comment.