class ContentBlockTools::Presenters::BasePresenter

def render

Returns:
  • (string) - A HTML representation of the content block
def render
  content_tag(
    BASE_TAG_TYPE,
    content,
    class: %W[content-embed content-embed__#{content_block.document_type}],
    data: {
      content_block: "",
      document_type: content_block.document_type,
      content_id: content_block.content_id,
      embed_code: content_block.embed_code,
    },
  )
end