Module: Pageflow::StructuredDataHelper Private
- Includes:
- MetaTagsHelper, RenderJsonHelper, SocialShareHelper
- Defined in:
- app/helpers/pageflow/structured_data_helper.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Constant Summary
Constants included from RenderJsonHelper
RenderJsonHelper::ESCAPED_CHARS, RenderJsonHelper::ESCAPED_CHARS_REGEX
Instance Method Summary collapse
- #structured_data_for_entry(entry) ⇒ Object private
- #structured_data_normalize_protocol(url) ⇒ Object private
Methods included from MetaTagsHelper
#meta_tags_data_for_entry, #meta_tags_for_entry
Methods included from SocialShareHelper
#social_share_entry_description, #social_share_entry_image_tags, #social_share_entry_url, #social_share_meta_tags_for, #social_share_normalize_protocol, #social_share_page_description, #social_share_page_title, #social_share_page_url
Methods included from RevisionFileHelper
Methods included from PagesHelper
#page_css_class, #page_default_content, #page_has_content, #page_header, #page_media_breakpoints, #page_navigation_css_class, #page_print_image, #page_text, #page_thumbnail_file, #page_thumbnail_image_class, #page_thumbnail_url, #render_page_template, #shadow_div
Methods included from EntriesHelper
#entry_css_class, #entry_file_rights, #entry_global_links, #entry_header_css_class, #entry_mobile_navigation_pages, #entry_privacy_link_url, #entry_stylesheet_link_tag, #entry_summary, #entry_theme_stylesheet_link_tag, #pretty_entry_title, #pretty_entry_url
Methods included from RenderJsonHelper
#render_html_partial, #render_json, #render_json_partial, #render_json_seed, #sanitize_json
Instance Method Details
#structured_data_for_entry(entry) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 |
# File 'app/helpers/pageflow/structured_data_helper.rb', line 8 def structured_data_for_entry(entry) content_tag(:script, type: 'application/ld+json') do render_json_partial('pageflow/structured_data/entry', entry: entry, meta_data: (entry)) end end |
#structured_data_normalize_protocol(url) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'app/helpers/pageflow/structured_data_helper.rb', line 16 def structured_data_normalize_protocol(url) url.gsub(%r{^//}, 'https://') end |