public static function ExternalPackageController::opignoH5pSlidesSortByWeight in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Controller/ExternalPackageController.php \Drupal\opigno_module\Controller\ExternalPackageController::opignoH5pSlidesSortByWeight()
Custom sort by date function.
File
- src/
Controller/ ExternalPackageController.php, line 436
Class
- ExternalPackageController
- Class ActivitiesBrowserController.
Namespace
Drupal\opigno_module\ControllerCode
public static function opignoH5pSlidesSortByWeight($a, $b) {
return $a->weight > $b->weight;
}