app/components/blacklight/document/group_component.rb in blacklight-7.24.0 vs app/components/blacklight/document/group_component.rb in blacklight-7.25.0
- old
+ new
@@ -1,13 +1,14 @@
# frozen_string_literal: true
module Blacklight
module Document
# Render the 'more like this' results from the response
- class GroupComponent < ::ViewComponent::Base
+ class GroupComponent < Blacklight::Component
with_collection_parameter :group
- # @param [Blacklight::Document] document
+ # @param [Blacklight::Solr::Response::Group] group
+ # @param [Integer] group_limit
def initialize(group:, group_limit: -1)
@group = group
@group_limit = group_limit
end