SortableFieldInterface

Type
Interface
Namespace
craft\base
Implemented by
craft\fields\Date, craft\fields\Dropdown, craft\fields\Lightswitch, craft\fields\Number, craft\fields\RadioButtons
Since
3.2.0

SortableFieldInterface defines the common interface to be implemented by field classes that can be available as sort options on element indexes.

View source

Public Methods

MethodDescription
getSortOption()Returns the sort option array that should be included in the element’s sortOptions() response.

getSortOption()

Returns the sort option array that should be included in the element’s sortOptions() response.

View source

Returns

array