Support visibility for tags (#4086)

This commit is contained in:
Kevin Papst
2023-06-09 17:07:49 +02:00
committed by GitHub
parent 6e781b59e2
commit 2e2bf986a4
17 changed files with 246 additions and 161 deletions

View File

@@ -11,12 +11,15 @@ namespace App\Repository\Query;
class TagQuery extends BaseQuery
{
use VisibilityTrait;
public const TAG_ORDER_ALLOWED = ['name', 'amount'];
public function __construct()
{
$this->setDefaults([
'orderBy' => 'name',
'visibility' => VisibilityInterface::SHOW_VISIBLE,
]);
}
}