function photos_preprocess_photos_album_links in Album Photos 8.4
Same name and namespace in other branches
- 8.5 photos.module \photos_preprocess_photos_album_links()
- 6.0.x photos.module \photos_preprocess_photos_album_links()
Implements hook_preprocess_HOOK().
File
- ./
photos.module, line 1409 - Implementation of photos.module.
Code
function photos_preprocess_photos_album_links(&$variables) {
// Prepare content.
$render_array = [
'#markup' => $variables['links']['link'],
];
$variables['links_display'] = \Drupal::service('renderer')
->render($render_array);
$variables['links_sort'] = \Drupal::service('renderer')
->render($variables['links']['sort']);
$render_array = [
'#markup' => $variables['links']['limit'],
];
$variables['links_limit'] = \Drupal::service('renderer')
->render($render_array);
}