public static function PhotosAlbum::orderLabels in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::orderLabels()
- 8.4 src/PhotosAlbum.php \Drupal\photos\PhotosAlbum::orderLabels()
Sort order labels.
2 calls to PhotosAlbum::orderLabels()
- PhotosAdminLegacySettingsForm::buildForm in src/
Form/ PhotosAdminLegacySettingsForm.php - Form constructor.
- photos_form_node_form_alter in ./
photos.module - Implements hook_form_BASE_FORM_ID_alter().
File
- src/
PhotosAlbum.php, line 442
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'),
'title|asc' => t('Title - A-Z'),
'title|desc' => t('Title - Z-A'),
'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'),
];
}