Class: Blacklight::Configuration::ViewConfig::Show

Inherits:
Blacklight::Configuration::ViewConfig show all
Defined in:
lib/blacklight/configuration/view_config.rb

Instance Attribute Summary collapse

Attributes inherited from Blacklight::Configuration::ViewConfig

#constraints_component, #display_type_field, #document_actions, #document_component, #facet_group_component, #icon, #partials, #search_bar_component, #search_header_component, #template, #title_field

Instance Method Summary collapse

Methods inherited from Blacklight::Configuration::ViewConfig

#display_label

Methods inherited from OpenStructWithHashAccess

#deep_dup, #deep_transform_values, #merge, #merge!, #reverse_merge, #select, #sort_by, #sort_by!, #try

Instance Attribute Details

#routeHash

Returns Default route parameters for ‘show’ requests. Set this to a hash with additional arguments to merge into the route, or set ‘controller: :current` to route to the current controller.

Returns:

  • (Hash)

    Default route parameters for ‘show’ requests. Set this to a hash with additional arguments to merge into the route, or set ‘controller: :current` to route to the current controller.



57
58
59
# File 'lib/blacklight/configuration/view_config.rb', line 57

def document_presenter_class
  super || Blacklight::ShowPresenter
end

Instance Method Details

#document_presenter_classObject



57
58
59
# File 'lib/blacklight/configuration/view_config.rb', line 57

def document_presenter_class
  super || Blacklight::ShowPresenter
end

#to_hObject



61
62
63
# File 'lib/blacklight/configuration/view_config.rb', line 61

def to_h
  super.merge(document_presenter_class: document_presenter_class)
end