update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -8,6 +8,11 @@ trait Min
|
|||
|
||||
public function min(): int|null
|
||||
{
|
||||
// set min to at least 1, if required
|
||||
if ($this->required === true) {
|
||||
return $this->min ?? 1;
|
||||
}
|
||||
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
|
|
@ -15,4 +20,14 @@ trait Min
|
|||
{
|
||||
$this->min = $min;
|
||||
}
|
||||
|
||||
public function isRequired(): bool
|
||||
{
|
||||
// set required to true if min is set
|
||||
if ($this->min) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->required;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue