Class: Spotlight::SkipLinkComponent
- Inherits:
-
Blacklight::SkipLinkComponent
- Object
- Blacklight::SkipLinkComponent
- Spotlight::SkipLinkComponent
- Defined in:
- app/components/spotlight/skip_link_component.rb
Overview
Blacklight Skip Link Component with conditional search link for Spotlight
Instance Method Summary collapse
-
#initialize(render_search_link: true) ⇒ SkipLinkComponent
constructor
A new instance of SkipLinkComponent.
- #link_to_search ⇒ Object
Constructor Details
#initialize(render_search_link: true) ⇒ SkipLinkComponent
Returns a new instance of SkipLinkComponent.
6 7 8 9 10 |
# File 'app/components/spotlight/skip_link_component.rb', line 6 def initialize(render_search_link: true) @render_search_link = render_search_link super end |
Instance Method Details
#link_to_search ⇒ Object
12 13 14 |
# File 'app/components/spotlight/skip_link_component.rb', line 12 def link_to_search super if @render_search_link end |