Sha256: 616787c6e3f01d4547b7df39ed2a3b01c3f15f6d3d1d58ceb40e2b704b329175
Contents?: true
Size: 597 Bytes
Versions: 32
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module Blacklight class FacetFieldListComponent < ::ViewComponent::Base def initialize(facet_field:, layout: nil) @facet_field = facet_field @layout = layout == false ? FacetFieldNoLayoutComponent : Blacklight::FacetFieldComponent end # Here for backwards compatibility only. # @private def render_facet_limit_list(*args) Deprecation.silence(Blacklight::FacetsHelperBehavior) do @view_context.render_facet_limit_list(*args) end end def render? @facet_field.paginator.items.any? end end end
Version data entries
32 entries across 32 versions & 1 rubygems