tt_content.text_media =< lib.twigContentElement
tt_content.text_media {
  templateName = elements/bricks/b-text-media/b-text-media.template.twig
  dataProcessing {
    20 = Bgm\BgmThemeAzh\DataProcessing\VideoDataProcessor
    20 {
      mediaField = media
    }
  }
  variables {
    textMedia {
      media {
        html =< lib.contentElement
        html {
          templateRootPaths.10 = EXT:bgm_theme_azh/Resources/Private/Templates/
          partialRootPaths.10 = EXT:bgm_theme_azh/Resources/Private/Partials/
          templateName = TwigImage
          dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
            10 {
              references.fieldName = media
              if.isTrue.field = media
            }
          }
        }

        #video = nfWlot6h_JM
        #type= youtube
        #aspectRatio = 16/9
        cookieMessage = Bitte Klicken damit Vid angezeigt werden kann

        # aspectRatio = TEXT
        # aspectRatio.field = aspect_ratio

        aspectRatio = FILES
        aspectRatio {
          references {
            table = tt_content
            fieldName = media
          }
          maxItems = 1

          renderObj = TEXT
          renderObj {
            data = file:current:crop
            stdWrap.postUserFunc = Bgm\BgmThemeAzh\Utility\ContentBaseUtility->getAspectRatio
            stdWrap.postUserFunc.defaultAspectRatio = {$styles.content.image.defaultAspectRatio}
          }
        }

        poster =< lib.contentElement
        poster {
          templateRootPaths.10 = EXT:bgm_theme_azh/Resources/Private/Templates/
          partialRootPaths.10 = EXT:bgm_theme_azh/Resources/Private/Partials/
          templateName = PosterImage
          dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
            10 {
              references.fieldName = media
              if.isTrue.field = media
            }
          }
        }
        poster >
      }

      inverted = TEXT
      inverted.field = text_media_inverted

      fullwidthMedia = TEXT
      fullwidthMedia.field = text_media_fullwidth

      flow = TEXT
      flow.field = text_media_flow

      heading < lib.heading
      heading {
        align = TEXT
        align.field = text_alignment
        align.value =
      }
      copy {
        text = TEXT
        text.field = bodytext
        text.parseFunc < lib.parseFunc_RTE
      }

      buttonGroup {
        isStretched = TEXT
        isStretched.field = buttongroup_isstretched
        isVertical = TEXT
        isVertical.field = buttongroup_isvertical
      }
    }
  }
}
