public static function PhotosAlbum::orderLabels in Album Photos 8.4
Same name and namespace in other branches
- 8.5 src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::orderLabels()
- 6.0.x src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::orderLabels()
Sort order labels.
2 calls to PhotosAlbum::orderLabels()
- PhotosAdminSettingsForm::buildForm in src/
Form/ PhotosAdminSettingsForm.php - Form constructor.
- photos_form_node_form_alter in ./
photos.module - Implements hook_form_BASE_FORM_ID_alter().
File
- src/
PhotosAlbum.php, line 441
Class
- PhotosAlbum
- Create an album object.
Namespace
Drupal\photosCode
public static function orderLabels() {
return [
'weight|asc' => t('Weight - smallest first'),
'weight|desc' => t('Weight - largest first'),
'created|desc' => t('Upload Date - newest first'),
'created|asc' => t('Upload Date - oldest first'),
'comments|desc' => t('Comments - most first'),
'comments|asc' => t('Comments - least first'),
'filesize|desc' => t('Filesize - smallest first'),
'filesize|asc' => t('Filesize - largest first'),
'visits|desc' => t('Visits - most first'),
'visits|asc' => t('Visits - least first'),
];
}