You are here

public function Photosets::themePhotoset in Flickr 8

Theme Photos.

Parameters

array $photos: Photos.

string $title: Title.

Return value

array Theme Array.

File

src/Service/Photosets.php, line 55

Class

Photosets
Class Photosets.

Namespace

Drupal\flickr\Service

Code

public function themePhotoset(array $photos, $title) {
  return [
    '#theme' => 'flickr_photoset',
    '#photos' => $photos,
    '#title' => $title,
    '#attached' => [
      'library' => [
        'flickr/flickr.stylez',
      ],
    ],
  ];
}