File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,24 @@ public function execute() {
3737 $ validator = $ this ->processorFactory ->createWithData ( $ validator ['type ' ], $ validator );
3838 }
3939 $ paramValidators = array_filter ( $ paramValidators ?? [] );
40+
41+ $ tagSpec = $ tag ->getClientTagSpecification ()?->jsonSerialize() ?? [];
42+ if ( isset ( $ tagSpec ['formSpecification ' ] )
43+ && isset ($ tagSpec ['formSpecification ' ]['definition ' ] )
44+ && isset ($ tagSpec ['formSpecification ' ]['definition ' ]['items ' ] )
45+ ) {
46+ foreach ( $ tagSpec ['formSpecification ' ]['definition ' ]['items ' ] as &$ item ) {
47+ if ( !isset ( $ item ['labelAlign ' ] ) ) {
48+ $ item ['labelAlign ' ] = 'top ' ;
49+ }
50+ }
51+ }
52+
4053 $ result [] = [
4154 'tags ' => $ tag ->getTagNames (),
4255 'hasContent ' => $ tag ->hasContent (),
4356 'paramDefinition ' => $ paramValidators ,
44- 'clientSpecification ' => $ tag -> getClientTagSpecification (),
57+ 'clientSpecification ' => $ tagSpec
4558 ];
4659 }
4760
You can’t perform that action at this time.
0 commit comments