Sha256: 3b44c5bece9293eaea5ccf26fa2cca045526557883de7c0ecdaebff5fbb4aeea
Contents?: true
Size: 578 Bytes
Versions: 36
Compression:
Stored size: 578 Bytes
Contents
module Hyrax module Collections module ManagedCollectionsService # @api public # # Count of collections the current user can manage. # # @param scope [Object] Typically a controller object that responds to `repository`, `can?`, `blacklight_config`, `current_ability` # @return [Array<SolrDocument>] def self.managed_collections_count(scope:) query_builder = Hyrax::Dashboard::CollectionsSearchBuilder.new(scope).rows(0) scope.repository.search(query_builder.query).response["numFound"] end end end end
Version data entries
36 entries across 36 versions & 1 rubygems