Commit d2fed7e9 authored by matsbla's avatar matsbla Committed by Mats Blakstad
Browse files

Issue #3314302 by matsbla: Error: Missing bundle for entity type

parent ea5924da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);