designtopack/public/kirby/src/Form/Mixin/After.php
2025-09-23 08:15:07 +02:00

21 lines
350 B
PHP

<?php
namespace Kirby\Form\Mixin;
trait After
{
/**
* Optional text that will be shown after the input
*/
protected string|null $after;
public function after(): string|null
{
return $this->stringTemplate($this->after);
}
protected function setAfter(array|string|null $after = null): void
{
$this->after = $this->i18n($after);
}
}