diff --git a/core/modules/language/language.module b/core/modules/language/language.module index 2655cad..e2cfac7 100644 --- a/core/modules/language/language.module +++ b/core/modules/language/language.module @@ -187,8 +187,7 @@ function language_configuration_element_submit(&$form, FormStateInterface $form_ // In case we are editing a bundle, we must check the new bundle name, // because e.g. hook_ENTITY_update fired before. $form_object = $form_state->getFormObject(); - $operation = $form_object->getOperation(); - if ($form_object instanceof EntityForm && !$form_object->getEntity()->isNew() && ($operation === 'default' || $operation === 'edit')) { + if ($form_object instanceof EntityForm && !$form_object->getEntity()->isNew() && ($form_object->getOperation() === 'default' || $form_object->getOperation() === 'edit')) { /** @var EntityForm $form_object */ $entity = $form_object->getEntity(); if ($entity->getEntityType()->getBundleOf()) {