def linked_classes_for(klass)
      return [] unless klass.respond_to?(:linked_classes_for)

      klass.linked_classes_for(current_component).map do |k|
        [k.underscore, t(k.demodulize.underscore, scope: "decidim.filters.linked_classes")]
      end
    end
def linked_classes_for(klass)
      return [] unless klass.respond_to?(:linked_classes_for)

      klass.linked_classes_for(current_component).map do |k|
        [k.underscore, t(k.demodulize.underscore, scope: "decidim.filters.linked_classes")]
      end
    end
Gets the classes linked to the given class for the `current_component`, and formats
 them in a nice way so that they can be used in a form. Resulting format looks like
 this, considering the given class is related to `Decidim::Meetings::Meeting`:

   [["decidim/meetings/meeting", "Meetings"]]

 This method is intended to be used as a check to render the filter or not. Use the
 `linked_classes_filter_values_for(klass)` method to get the form filter collection
 values.

 klass - The class that will have its linked resources formatted.

 Returns an Array of Arrays of Strings.
 Returns an empty Array if no links are found.