| 1 | <?php |
||
| 19 | class ExtendedSortExtension extends Extension implements EventListenerInterface |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Default settings |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $_defaultConfig = [ |
||
| 28 | 'sortField' => 'sort', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns a list of events this object is implementing. When the class is registered |
||
| 33 | * in an event manager, each individual method will be associated with the respective event. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 5 | public function implementedEvents() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * find entities |
||
| 46 | * |
||
| 47 | * @param Event $event An Event instance |
||
| 48 | * @return Entity |
||
| 49 | */ |
||
| 50 | 5 | public function findEntities(Event $event) |
|
| 70 | } |
||
| 71 |