Module: Pageflow::FileBackgroundImagesHelper Private

Includes:
BackgroundImageHelper
Defined in:
app/helpers/pageflow/file_background_images_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.

Defined Under Namespace

Classes: Rules

Constant Summary collapse

ALLOWED_BREAKPOINTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[:mobile, :desktop].freeze

Instance Method Summary collapse

Methods included from BackgroundImageHelper

#background_image_div, #background_image_div_with_size, #background_image_lazy_loading_css_class, #background_image_tag

Methods included from RevisionFileHelper

#find_file_in_entry

Instance Method Details

#file_background_images_css(entry, breakpoint_name) ⇒ 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
# File 'app/helpers/pageflow/file_background_images_helper.rb', line 8

def file_background_images_css(entry, breakpoint_name)
  render(partial: 'pageflow/file_background_images/rule',
         collection: Rules.new(Pageflow.config.file_types.with_css_background_image_support,
                               entry,
                               breakpoint_name).to_a)
end