Method: Maglev::PageComponent#initialize

Defined in:
app/components/maglev/page_component.rb

#initialize(site:, theme:, page:, page_sections:, context:) ⇒ PageComponent

rubocop:disable Lint/MissingSuper



8
9
10
11
12
13
14
15
16
# File 'app/components/maglev/page_component.rb', line 8

def initialize(site:, theme:, page:, page_sections:, context:)
  @site = site
  @theme = theme
  @page = page
  @page_sections = page_sections
  @templates_root_path = context[:templates_root_path]
  @config = context[:config]
  @rendering_mode = context[:rendering_mode]
end