|
15 | 15 |
|
16 | 16 | use Exception; |
17 | 17 | use JsonException; |
| 18 | +use Pimcore\Bundle\StaticResolverBundle\Lib\ToolResolverInterface; |
| 19 | +use Pimcore\Bundle\StaticResolverBundle\Models\DataObject\LocalizedFieldResolverInterface; |
18 | 20 | use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidArgumentException; |
19 | 21 | use Pimcore\Bundle\StudioBackendBundle\Exception\Api\TransformerException; |
20 | 22 | use Pimcore\Bundle\StudioBackendBundle\Grid\Column\ColumnResolverInterface; |
@@ -69,10 +71,24 @@ final class AdvancedColumnResolver implements |
69 | 71 | public function __construct( |
70 | 72 | private readonly TransformerLoaderInterface $transformerLoader, |
71 | 73 | private readonly GridServiceInterface $gridService, |
72 | | - private readonly ResolverTypeGuesserInterface $resolverTypeGuesser |
| 74 | + private readonly ResolverTypeGuesserInterface $resolverTypeGuesser, |
| 75 | + private readonly ToolResolverInterface $toolResolver, |
| 76 | + private readonly LocalizedFieldResolverInterface $localizedFieldResolver, |
73 | 77 | ) { |
74 | 78 | } |
75 | 79 |
|
| 80 | + /** @see LocalizedValueTrait::doGetFallbackValues() */ |
| 81 | + protected function doGetFallbackValues(): bool |
| 82 | + { |
| 83 | + return $this->localizedFieldResolver->doGetFallbackValues(); |
| 84 | + } |
| 85 | + |
| 86 | + /** @see LocalizedValueTrait::getDefaultLanguage() */ |
| 87 | + protected function getDefaultLanguage(): ?string |
| 88 | + { |
| 89 | + return $this->toolResolver->getDefaultLanguage(); |
| 90 | + } |
| 91 | + |
76 | 92 | public function getType(): string |
77 | 93 | { |
78 | 94 | return 'dataobject.advanced'; |
@@ -211,7 +227,7 @@ private function resolveField( |
211 | 227 | locale: $isLocalizable ? $column->getLocale() : null, |
212 | 228 | type: $resolverType, |
213 | 229 | group: $column->getGroup(), |
214 | | - config: $column->getConfig() |
| 230 | + config: $column->getConfig(), |
215 | 231 | ); |
216 | 232 |
|
217 | 233 | $data = null; |
|
0 commit comments