Add manifest.json for graphify-out documentation with metadata for various files
This commit is contained in:
@@ -86,7 +86,12 @@ class TagController extends BaseController
|
||||
$limit = min(100, max(1, (int) $request->query->get('limit', 15)));
|
||||
$search = trim((string) $request->query->get('search', ''));
|
||||
|
||||
$qb = $this->repo->createQueryBuilder('t')->orderBy('t.name', 'ASC');
|
||||
$qb = $this->repo->createQueryBuilder('t');
|
||||
if ($request->query->get('sort') === 'id') {
|
||||
$qb->orderBy('t.id', strtoupper((string) $request->query->get('order')) === 'DESC' ? 'DESC' : 'ASC');
|
||||
} else {
|
||||
$qb->orderBy('t.name', 'ASC');
|
||||
}
|
||||
if ($search !== '') {
|
||||
$qb->andWhere('t.name LIKE :s')->setParameter('s', '%' . $search . '%');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user