Eigene Fotokategorie fuer Grundrisse und Plaene, nie in Galerien

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-29 18:43:02 +01:00
1 parent 8bcda9a4bc
commit d02f3e05c7
7 files changed
+85 -4

No files matched your search

+13
View File
@@ -9,6 +9,8 @@ enum PhotoCategory: string implements HasLabel
case Apartment = 'apartment';
case Outdoor = 'outdoor';
case Area = 'area';
/** Floor plans and drawings: chosen explicitly (e.g. for the interactive floor plan), never shown in galleries. */
case Plan = 'plan';
public function getLabel(): string
{
@@ -16,6 +18,17 @@ public function getLabel(): string
self::Apartment => 'Wohnung',
self::Outdoor => 'Terrasse & Garten',
self::Area => 'Kühlungsborn & Umgebung',
self::Plan => 'Grundriss & Pläne',
};
}
/**
* Categories a gallery or an automatic photo may show.
*
* @return list<self>
*/
public static function forGalleries(): array
{
return array_values(array_filter(self::cases(), fn (self $category): bool => $category !== self::Plan));
}
}