def element_tags_attributes(element, options = {})
      options = {
        formatter: lambda { |tags| tags.join(' ') }
      }.merge(options)

      return {} if !element.taggable? || element.tag_list.blank?
      { 'data-element-tags' => options[:formatter].call(element.tag_list) }
    end
def element_tags_attributes(element, options = {})
      options = {
        formatter: lambda { |tags| tags.join(' ') }
      }.merge(options)

      return {} if !element.taggable? || element.tag_list.blank?
      { 'data-element-tags' => options[:formatter].call(element.tag_list) }
    end
Returns the element's tags information as an attribute hash.

 @param [Alchemy::Element] element The {Alchemy::Element} you want to render the tags from.

 @option options [Proc] :formatter
   ('lambda { |tags| tags.join(' ') }')
   Lambda converting array of tags to a string.

 @return [Hash]
   HTML tag attributes containing the element's tag information.