Class: Blacklight::FacetCheckboxItemPresenter

Inherits:
FacetItemPresenter
  • Object
show all
Defined in:
app/presenters/blacklight/facet_checkbox_item_presenter.rb

Instance Method Summary collapse

Instance Method Details

#selected?Boolean

Check if the query parameters have any inclusive facets with the given value

Returns:

  • (Boolean)


7
8
9
# File 'app/presenters/blacklight/facet_checkbox_item_presenter.rb', line 7

def selected?
  search_state.filter(facet_config).values(except: [:filters, :missing]).flatten.include?(value)
end