Sha256: 181493c7194ba9bd7e4a607d1044e7b26feafa860092c67ff2fed80a147f8954
Contents?: true
Size: 1.13 KB
Versions: 16
Compression:
Stored size: 1.13 KB
Contents
module Pageflow # Captures details of how to render entries of a certain type # # @since 15.1 class EntryType # @api private attr_reader :name, :frontend_app, :editor_fragment_renderer, :configuration, :editor_app # @param name [String] A unique name. # # @param frontend_app [#call] A rack app that renders the entry # when not in the editor (i.e. preview and published entries). # # @param editor_fragment_renderer [PartialEditorFragmentRenderer] # Inject content into editor HTML and JSON seed templates. # # @param configuration [Class] Class including # {Pageflow::Configuration::EntryTypeConfiguration}. # # @param editor_app [#call] A rack app that extends the REST # interface used by editor Backbone collections. Mounted at # `/editor/entries/:id/<entry_type_name>/` def initialize(name:, frontend_app:, editor_fragment_renderer:, configuration:, editor_app: nil) @name = name @frontend_app = frontend_app @editor_fragment_renderer = editor_fragment_renderer @configuration = configuration @editor_app = editor_app end end end
Version data entries
16 entries across 16 versions & 1 rubygems