File: D:/HostingSpaces/SBogers10/switch4u.komma.nl/vendor/komma/kms/src/Core/Attributes/Title.php
<?php
namespace Komma\KMS\Core\Attributes;
class Title extends Attribute
{
protected ?int $getsValueFrom = Attribute::NonInteractiveAttribute;
/**
* Returns a view that visually represents this attribute
*/
public function render(): string
{
return view('KMS::attributes.title', [
'attribute' => $this
])->render();
}
/**
* Alias for setValue, because in this attribute the value is the label
*
* @param string $labelText
* @return $this
*/
public function setLabelText(string $labelText)
{
$this->setValue($labelText);
return $this;
}
}