Sha256: bce21808eee194e4b3fb368c341295688dac1e33e57c43f436bf310709ba8501

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  # Render an document suitable for embedding on a feature page.
  class SolrDocumentLegacyEmbedComponent < Blacklight::DocumentComponent
    attr_reader :block_context

    def initialize(*args, block: nil, **kwargs)
      super

      @block_context = block
    end

    def before_render
      set_slot(:embed, nil, block_context:) unless embed

      super
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-5.0.0.pre.alpha2 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-5.0.0.pre.alpha1 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.7.1 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.7.0 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.6.1 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.6.0 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.5.0 app/components/spotlight/solr_document_legacy_embed_component.rb
blacklight-spotlight-4.4.0 app/components/spotlight/solr_document_legacy_embed_component.rb