You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you're already extending JsonView for the Configuration, you could also change the behaviour of transformValues() in order to toArray all $values being an instance of StorageObject:
protected function transformValue($value, array $configuration)
{
if($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage) {
$value = $value->toArray();
}
...
rest of the original Function.
}
what do you think?
BTW: thx for the HowTo ;)
The text was updated successfully, but these errors were encountered:
As you're already extending JsonView for the Configuration, you could also change the behaviour of transformValues() in order to toArray all $values being an instance of StorageObject:
what do you think?
BTW: thx for the HowTo ;)
The text was updated successfully, but these errors were encountered: