File: D:/HostingSpaces/SBogers10/reiskick.komma.nl/app/Components/Types/Socials.php
<?php
namespace App\Components\Types;
use App\Components\ComponentTypes;
use App\Components\HasSpacingTrait;
use Komma\KMS\Components\ComponentType\Types\AbstractComponentType;
use Komma\KMS\Core\Attributes\TextArea;
use Komma\KMS\Core\Attributes\TextField;
class Socials extends AbstractComponentType
{
use HasSpacingTrait;
protected int $id = ComponentTypes::SOCIALS;
protected string $name = 'socials';
public function defineAttributesAndTabs()
{
$this->addItems([
(new TextField())
->setReference('title')
->setLabelText(__('KMS::attributes/components.title'))
->setExplanation('Overschrijft de standaard titel'),
(new TextArea())
->setReference('description')
->setLabelText(__('KMS::attributes/components.text'))
->setExplanation('Overschrijft de standaard tekst'),
]);
$this->addItems($this->getSpacingFields());
}
}