class Decidim::Pages::CreatePage

usually happens as a callback when the component itself is created.
Command that gets called whenever a component’s page has to be created. It

def call

def call
  @page = Page.new(component: @component)
  @page.save ? broadcast(:ok) : broadcast(:invalid)
end

def initialize(component)

def initialize(component)
  @component = component
end