FrontendQueryScope
class FrontendQueryScope implements QueryScopeInterface (View source)
This class takes an overall config array as input and parses into values applicable for performing select queries.
This takes into account default ordering for ContentTypes.
Properties
protected Config | $config | ||
protected array | $orderBys |
Methods
__construct(Config $config, LocaleHelper $localeHelper, Environment $twig, Notifications $notifications)
Constructor.
string
void
parseContentTypes()
Iterates over the main config and sets up what the default ordering should be.
Details
__construct(Config $config, LocaleHelper $localeHelper, Environment $twig, Notifications $notifications)
Constructor.
string
getOrder(QueryInterface $query)
Get the default order setting for a given content type.
protected void
parseContentTypes()
Iterates over the main config and sets up what the default ordering should be.