Loading src/Plugin/Field/FieldFormatter/CustomTwigFormatter.php +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ class CustomTwigFormatter extends FormatterBase { $configTarget = explode('.', $configTarget); $entity_type = $configTarget[0]; $bundle = $configTarget[1]; $entity = $this->entityTypeManager->getStorage($entity_type)->create(['bundle' => $bundle]); $entity = $this->entityTypeManager->getStorage($entity_type)->create(['type' => $bundle]); $fieldsDoc = []; $fieldDefinitions = $this->entityFieldManager->getFieldDefinitions($entity_type, $bundle); Loading Loading
src/Plugin/Field/FieldFormatter/CustomTwigFormatter.php +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ class CustomTwigFormatter extends FormatterBase { $configTarget = explode('.', $configTarget); $entity_type = $configTarget[0]; $bundle = $configTarget[1]; $entity = $this->entityTypeManager->getStorage($entity_type)->create(['bundle' => $bundle]); $entity = $this->entityTypeManager->getStorage($entity_type)->create(['type' => $bundle]); $fieldsDoc = []; $fieldDefinitions = $this->entityFieldManager->getFieldDefinitions($entity_type, $bundle); Loading