Issues/3419186: Add hook_ENTITY_TYPE_form_mode_alter().
Compare changes
@@ -49,3 +49,12 @@ function entity_test_delete_bundle($bundle, $entity_type = 'entity_test'): void
@@ -49,3 +49,12 @@ function entity_test_delete_bundle($bundle, $entity_type = 'entity_test'): void
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead. See https://www.drupal.org/node/3497049', E_USER_DEPRECATED);