File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818use Pimcore \Bundle \GenericDataIndexBundle \Model \Search \Asset \SearchResult \AssetMetaData ;
1919use Pimcore \Bundle \StudioBackendBundle \Response \Element ;
2020use Pimcore \Bundle \StudioBackendBundle \Response \ElementIcon ;
21+ use Pimcore \Bundle \StudioBackendBundle \Util \Constant \ElementTypes ;
2122use Pimcore \Bundle \StudioBackendBundle \Util \Schema \AdditionalAttributesInterface ;
2223use Pimcore \Bundle \StudioBackendBundle \Util \Trait \AdditionalAttributesTrait ;
2324use Pimcore \Bundle \StudioBackendBundle \Util \Trait \CustomAttributesTrait ;
@@ -85,7 +86,8 @@ public function __construct(
8586 $ locked ,
8687 $ isLocked ,
8788 $ creationDate ,
88- $ modificationDate
89+ $ modificationDate ,
90+ ElementTypes::TYPE_ASSET ,
8991 );
9092 }
9193
Original file line number Diff line number Diff line change 1717use OpenApi \Attributes \Schema ;
1818use Pimcore \Bundle \StudioBackendBundle \Response \Element ;
1919use Pimcore \Bundle \StudioBackendBundle \Response \ElementIcon ;
20+ use Pimcore \Bundle \StudioBackendBundle \Util \Constant \ElementTypes ;
2021use Pimcore \Bundle \StudioBackendBundle \Util \Schema \AdditionalAttributesInterface ;
2122use Pimcore \Bundle \StudioBackendBundle \Util \Trait \AdditionalAttributesTrait ;
2223use Pimcore \Bundle \StudioBackendBundle \Util \Trait \CustomAttributesTrait ;
@@ -91,7 +92,8 @@ public function __construct(
9192 $ locked ,
9293 $ isLocked ,
9394 $ creationDate ,
94- $ modificationDate
95+ $ modificationDate ,
96+ ElementTypes::TYPE_DATA_OBJECT
9597 );
9698 }
9799
Original file line number Diff line number Diff line change 1717use OpenApi \Attributes \Schema ;
1818use Pimcore \Bundle \StudioBackendBundle \Response \Element ;
1919use Pimcore \Bundle \StudioBackendBundle \Response \ElementIcon ;
20+ use Pimcore \Bundle \StudioBackendBundle \Util \Constant \ElementTypes ;
2021use Pimcore \Bundle \StudioBackendBundle \Util \Schema \AdditionalAttributesInterface ;
2122use Pimcore \Bundle \StudioBackendBundle \Util \Trait \AdditionalAttributesTrait ;
2223use Pimcore \Bundle \StudioBackendBundle \Util \Trait \CustomAttributesTrait ;
@@ -85,7 +86,8 @@ public function __construct(
8586 $ locked ,
8687 $ isLocked ,
8788 $ creationDate ,
88- $ modificationDate
89+ $ modificationDate ,
90+ ElementTypes::TYPE_DOCUMENT
8991 );
9092 }
9193
Original file line number Diff line number Diff line change 3333 'isLocked ' ,
3434 'creationDate ' ,
3535 'modificationDate ' ,
36+ 'elementType ' ,
3637 ],
3738 type: 'object '
3839)]
@@ -59,6 +60,8 @@ public function __construct(
5960 private readonly ?int $ creationDate ,
6061 #[Property(description: 'Modification date ' , type: 'integer ' , example: 327417600 )]
6162 private readonly ?int $ modificationDate ,
63+ #[Property(description: 'elementType ' , type: 'string ' , example: 'asset ' )]
64+ private readonly string $ elementType ,
6265 ) {
6366 }
6467
@@ -116,4 +119,9 @@ public function getPermissions(): Permissions
116119 {
117120 return new Permissions ();
118121 }
122+
123+ public function getElementType (): string
124+ {
125+ return $ this ->elementType ;
126+ }
119127}
Original file line number Diff line number Diff line change 1818use Pimcore \Bundle \StudioBackendBundle \DataObject \Util \Trait \ClassDataTrait ;
1919use Pimcore \Bundle \StudioBackendBundle \Response \Element ;
2020use Pimcore \Bundle \StudioBackendBundle \Response \ElementIcon ;
21+ use Pimcore \Bundle \StudioBackendBundle \Util \Constant \ElementTypes ;
2122use Pimcore \Bundle \StudioBackendBundle \Util \Schema \AdditionalAttributesInterface ;
2223use Pimcore \Bundle \StudioBackendBundle \Util \Trait \AdditionalAttributesTrait ;
2324use Pimcore \Bundle \StudioBackendBundle \Util \Trait \WorkflowAvailableTrait ;
@@ -76,7 +77,8 @@ public function __construct(
7677 $ locked ,
7778 $ isLocked ,
7879 $ creationDate ,
79- $ modificationDate
80+ $ modificationDate ,
81+ ElementTypes::TYPE_DATA_OBJECT
8082 );
8183 }
8284
You can’t perform that action at this time.
0 commit comments