Class: Spotlight::SkipLinkComponent

Inherits:
Blacklight::SkipLinkComponent
  • Object
show all
Defined in:
app/components/spotlight/skip_link_component.rb

Overview

Blacklight Skip Link Component with conditional search link for Spotlight

Instance Method Summary collapse

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



12
13
14
# File 'app/components/spotlight/skip_link_component.rb', line 12

def link_to_search
  super if @render_search_link
end