Skip to content

Commit c7a6cc5

Browse files
authored
[Grid] Add field collection definition (#1339)
* Add Field Collection Definition * Remove dd
1 parent a083966 commit c7a6cc5

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

config/grid.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ services:
285285
Pimcore\Bundle\StudioBackendBundle\Grid\Column\Definition\DataObject\CalculatedValueDefinition:
286286
tags: [ 'pimcore.studio_backend.grid_column_definition' ]
287287

288+
Pimcore\Bundle\StudioBackendBundle\Grid\Column\Definition\DataObject\FieldCollectionDefinition:
289+
tags: [ 'pimcore.studio_backend.grid_column_definition' ]
290+
288291

289292
#
290293
# Column Resolver
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* This source file is available under the terms of the
6+
* Pimcore Open Core License (POCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
11+
* @license Pimcore Open Core License (POCL)
12+
*/
13+
14+
namespace Pimcore\Bundle\StudioBackendBundle\Grid\Column\Definition\DataObject;
15+
16+
/**
17+
* @internal
18+
*/
19+
final readonly class FieldCollectionDefinition extends AbstractDefinition
20+
{
21+
public function getType(): string
22+
{
23+
return 'data-object.fieldcollections';
24+
}
25+
26+
public function getFrontendType(): string
27+
{
28+
return 'fieldcollections';
29+
}
30+
31+
public function isSortable(): bool
32+
{
33+
return false;
34+
}
35+
36+
public function isFilterable(): bool
37+
{
38+
return false;
39+
}
40+
}

0 commit comments

Comments
 (0)