Add custom HTML to Branding config object.

This commit is contained in:
Buster Neece 2024-04-25 12:46:49 -05:00
parent 3078f4f686
commit da51ec823c
No known key found for this signature in database
1 changed files with 13 additions and 0 deletions

View File

@ -4,6 +4,19 @@ declare(strict_types=1);
namespace App\Entity;
use App\Utilities\Types;
class PodcastBrandingConfiguration extends AbstractStationConfiguration
{
public const PUBLIC_CUSTOM_HTML = 'public_custom_html';
public function getPublicCustomHtml(): ?string
{
return Types::stringOrNull($this->get(self::PUBLIC_CUSTOM_HTML), true);
}
public function setPublicCustomHtml(?string $html): void
{
$this->set(self::PUBLIC_CUSTOM_HTML, $html);
}
}