lib/blacklight/configuration/display_field.rb in blacklight-7.40.0 vs lib/blacklight/configuration/display_field.rb in blacklight-8.0.0.beta1

- old
+ new

@@ -1,8 +1,15 @@ # frozen_string_literal: true + module Blacklight class Configuration::DisplayField < Blacklight::Configuration::Field + def initialize(*args, **kwargs, &block) + super + + self.presenter ||= Blacklight::FieldPresenter + self.component ||= Blacklight::MetadataFieldComponent + end ## # The following is a non-exhaustive list of display field config parameters that are used # by Blacklight directly. Application-specific code or plugins may add or replace # the parameters and behaviors specified below. # @@ -31,20 +38,11 @@ ## # Default rendering pipeline: # @!attribute link_to_facet # @return [Boolean] - # @!attribute link_to_search - # @deprecated use link_to_facet instead. - # @return [Boolean] # @!attribute itemprop # @return [String] # @!attribute separator_options # @return [Hash] - - # @param [Blacklight::Configuration] _blacklight_config - def normalize! _blacklight_config = nil - super - self.presenter ||= Blacklight::FieldPresenter - end end end