class ContentBlockTools::Presenters::BasePresenter
def content
-
(string)
- A representation of the content block to be wrapped in the base_tag in
def content content_block.title end
def initialize(content_block)
-
({ContentBlockTools::Presenters::BasePresenter})
-
Parameters:
-
content_block
({ContentBlockTools::ContentBlock}
) -- A content block object
def initialize(content_block) @content_block = content_block end
def render
-
(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, }, ) end