10-04-2026
This commit is contained in:
parent
4d6b4930b2
commit
4bb89aad8c
836 changed files with 52961 additions and 5950 deletions
31
app/Enums/DisplayVersionType.php
Normal file
31
app/Enums/DisplayVersionType.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum DisplayVersionType: string
|
||||
{
|
||||
case VideoDisplay = 'video-display';
|
||||
case B2in = 'b2in';
|
||||
case Offers = 'offers';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::VideoDisplay => 'Video-Display',
|
||||
self::B2in => 'B2in Display',
|
||||
self::Offers => 'Angebote',
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string>
|
||||
*/
|
||||
public function allowedItemTypes(): array
|
||||
{
|
||||
return match ($this) {
|
||||
self::VideoDisplay => ['video', 'footer'],
|
||||
self::B2in => ['media'],
|
||||
self::Offers => ['slide'],
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue