Skip to content

Commit

Permalink
move photo layout to AlbumConfig with global default
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Oct 23, 2024
1 parent 5ef3785 commit d6a0600
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/Models/BaseAlbumImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,26 @@ protected function setPhotoSortingAttribute(?PhotoSortingCriterion $sorting): vo
$this->attributes['sorting_col'] = $sorting?->column->value;
$this->attributes['sorting_order'] = $sorting?->order->value;
}

// /**
// * Defines accessor for the Aspect Ratio.
// *
// * @return PhotoLayoutType|null
// */
// protected function getPhotoLayoutAttribute(): ?PhotoLayoutType
// {
// return PhotoLayoutType::tryFrom($this->attributes['photo_layout']);
// }

// /**
// * Defines setter for Aspect Ratio.
// *
// * @param AspectRatioType|null $aspectRatio
// *
// * @return void
// */
// protected function setPhotoLayoutAttribute(?PhotoLayoutType $aspectRatio): void
// {
// $this->attributes['photo_layout'] = $aspectRatio?->value;
// }
}

0 comments on commit d6a0600

Please sign in to comment.