1919use Exception ;
2020use Pimcore \Model \DataObject \AbstractObject ;
2121use Pimcore \Model \DataObject \ClassDefinition ;
22+ use Pimcore \Model \DataObject \ClassDefinition \Data ;
23+ use Pimcore \Model \DataObject \ClassDefinition \Layout ;
2224use Pimcore \Model \DataObject \Concrete ;
2325use Pimcore \Model \DataObject \Fieldcollection \Data \AbstractData as FieldCollectionData ;
2426use Pimcore \Model \DataObject \Folder ;
@@ -61,6 +63,30 @@ public function pathExists(string $path, ?string $type = null): bool
6163 return Service::pathExists ($ path , $ type );
6264 }
6365
66+ /**
67+ * @param Data[] $targetList
68+ */
69+ public function extractFieldDefinitions (
70+ Data |Layout $ layout ,
71+ string $ targetClass ,
72+ array $ targetList ,
73+ bool $ insideDataType
74+ ): array {
75+
76+ return Service::extractFieldDefinitions ($ layout , $ targetClass , $ targetList , $ insideDataType );
77+ }
78+
79+ public function getSuperLayoutDefinition (Concrete $ object ): mixed
80+ {
81+
82+ return Service::getSuperLayoutDefinition ($ object );
83+ }
84+
85+ public function createSuperLayout (Data |Layout $ layout ): void
86+ {
87+ Service::createSuperLayout ($ layout );
88+ }
89+
6490 public function getCustomLayoutDefinitionForGridColumnConfig (ClassDefinition $ class , int $ objectId ): array
6591 {
6692 return Service::getCustomLayoutDefinitionForGridColumnConfig ($ class , $ objectId );
@@ -74,6 +100,11 @@ public function enrichLayoutDefinition(
74100 Service::enrichLayoutDefinition ($ layout , $ object , $ context );
75101 }
76102
103+ public function enrichLayoutPermissions (Data &$ layout , ?array $ allowedView , ?array $ allowedEdit ): void
104+ {
105+ Service::enrichLayoutPermissions ($ layout , $ allowedView , $ allowedEdit );
106+ }
107+
77108 /**
78109 * @return Concrete[]
79110 */
0 commit comments