Skip to content
Snippets Groups Projects

Patch #9 applied, Issue #2855627

Merged Shivam Tiwari requested to merge issue/inline_entity_form-2855627:8.x-1.x into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -468,7 +468,7 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto
@@ -468,7 +468,7 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto
* @todo Replace line 472 \Drupal call with Dependency Injection.
* @todo Replace line 472 \Drupal call with Dependency Injection.
*/
*/
protected function isTranslating(FormStateInterface $form_state) {
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');
$translation_manager = \Drupal::service('content_translation.manager');
$target_type = $this->getFieldSetting('target_type');
$target_type = $this->getFieldSetting('target_type');
foreach ($this->getTargetBundles() as $bundle) {
foreach ($this->getTargetBundles() as $bundle) {
Loading