Files
lichterei-web/kirby/config/sections/mixins/empty.php
Bastian Allgeier 418db4b09b Upgrade to 3.0.3
2019-03-05 10:55:03 +01:00

29 lines
594 B
PHP
Executable File

<?php
return [
'props' => [
/**
* Sets the text for the empty state box
*/
'empty' => function ($empty = null) {
return I18n::translate($empty, $empty);
}
],
'methods' => [
'isFull' => function () {
if ($this->max) {
return $this->total >= $this->max;
}
return false;
},
'validateMax' => function () {
if ($this->max && $this->max < $this->total) {
return false;
}
return true;
}
]
];