Files
lichterei-web/kirby/config/sections/mixins/search.php
Bastian Allgeier 1ad1eaf387 Upgrade to 3.7.1
2022-07-12 13:33:21 +02:00

20 lines
315 B
PHP
Executable File

<?php
use Kirby\Cms\App;
return [
'props' => [
/**
* Enable/disable the search in the sections
*/
'search' => function (bool $search = false): bool {
return $search;
}
],
'computed' => [
'searchterm' => function (): ?string {
return App::instance()->request()->get('searchterm');
}
]
];