Skip to content
Snippets Groups Projects
Commit 00f5aeec authored by Shivam Tiwari's avatar Shivam Tiwari
Browse files

Patch #9 applied, Issue #2855627

parent 869ba998
No related branches found
No related tags found
2 merge requests!113Draft: Automated Project Update Bot fixes,!79Patch #9 applied, Issue #2855627
......@@ -468,7 +468,7 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto
* @todo Replace line 472 \Drupal call with Dependency Injection.
*/
protected function isTranslating(FormStateInterface $form_state) {
if (TranslationHelper::isTranslating($form_state)) {
if (\Drupal::hasService('content_translation.manager') && TranslationHelper::isTranslating($form_state)) {
$translation_manager = \Drupal::service('content_translation.manager');
$target_type = $this->getFieldSetting('target_type');
foreach ($this->getTargetBundles() as $bundle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment