composer update
This commit is contained in:
parent
0b3c362c5e
commit
a1f0701630
142 changed files with 4530 additions and 1195 deletions
21
public/kirby/src/Form/Mixin/After.php
Normal file
21
public/kirby/src/Form/Mixin/After.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue