<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\MediaSlab;

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class MediaSlabVideoLinkFieldEntity extends LinkFieldEntity
{
  public static string $name = 'media_slab_video_link';
  protected string $label = 'Embedded Video URL';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [[ MediaSlabVideoSwitchFieldEntity::class, OperatorEnum::EQUALS, 'external' ]],
  ];

}
