Sha256: 059125e71d74f4cf87124a005058caf201a80cd58849bb7d760894aed9540349
Contents?: true
Size: 361 Bytes
Versions: 12
Compression:
Stored size: 361 Bytes
Contents
# frozen_string_literal: true module Blacklight class FacetCheckboxItemPresenter < Blacklight::FacetItemPresenter # Check if the query parameters have any inclusive facets with the given value # @return [Boolean] def selected? search_state.filter(facet_config).values(except: [:filters, :missing]).flatten.include?(value) end end end
Version data entries
12 entries across 12 versions & 1 rubygems