Module: Pageflow::Sitemaps Private

Defined in:
app/models/pageflow/sitemaps.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.entries_for(site:) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/pageflow/sitemaps.rb', line 4

def self.entries_for(site:)
  PublishedEntry.wrap_all(
    site
      .entries
      .preload(:account,
               permalink: :directory,
               translation_group: {
                 publicly_visible_entries: [
                   :account,
                   :published_revision,
                   {permalink: :directory}
                 ]
               })
      .published_without_password_protection
      .published_without_noindex
      .order(first_published_at: :desc)
  )
end