class Top extends Filter (View source)

A filter that sorts results by their reaction score, with an optional scoping by time period.

Constants

PERIODS

Methods

string
handle()

The handle for the filter, used in query parameters.

from  Filter
string
label()

The text label for the filter.

void
apply(Builder $query)

Apply the filter to the feed query builder.

string|null
currentPeriod()

Get the currently selected time period.

Details

string handle()

The handle for the filter, used in query parameters.

Return Value

string

string label()

The text label for the filter.

Return Value

string

void apply(Builder $query)

Apply the filter to the feed query builder.

Parameters

Builder $query

Return Value

void

string|null currentPeriod()

Get the currently selected time period.

Return Value

string|null