Method: Hyrax::Renderers::ConfiguredMicrodata#microdata_object_attributes

Defined in:
app/renderers/hyrax/renderers/configured_microdata.rb

#microdata_object_attributes(field) ⇒ Object

Since:

  • 0.14.0



15
16
17
18
19
20
21
# File 'app/renderers/hyrax/renderers/configured_microdata.rb', line 15

def microdata_object_attributes(field)
  if microdata_object?(field)
    { itemprop: microdata_property(field), itemscope: '', itemtype: microdata_type(field) }
  else
    {}
  end
end