File: D:/HostingSpaces/SBogers10/eleo.komma.nl/app/Components/Types/Video.php
<?php
namespace App\Components\Types;
use Komma\KMS\Components\ComponentType\Types\Video as KMSVideo;
use Komma\KMS\Core\Attributes\OnOff;
use Komma\KMS\Core\Attributes\Seperator;
use Komma\KMS\Core\Attributes\Title;
class Video extends KMSVideo
{
public function defineAttributesAndTabs()
{
parent::defineAttributesAndTabs();
$this->addItems([
(new Seperator()),
(new Title())
->setLabelText(__('KMS::attributes/components.options')),
(new OnOff())
->setLabelText('Maak rij \'Licht op donker\'')
->setReference( 'lightOnDark'),
]);
}
}