#110129Class \TYPO3\CMS\Core\Page\ContentArea should implement \Countable
Description
Hi,
in my TYPO3 v14 instance I’m migrating all container content elements from \B13\Container\DataProcessing\ContainerProcessor to \B13\Container\DataProcessing\ContentAreaProcessor.
With ContainerProcessor it was possible to use the iteration feature in fluid <f:for each="{children_201}" as="contentElement" iteration="iteration">.
With the new ContentAreaProcessor this is no longer possible. if I want to use iteration I need to change <f:for each="{content.201}"...> to <f:for each="{content.201.records}"...> (see the added .record).
As discussed in Slack, it seems that \TYPO3\CMS\Core\Page\ContentArea does not implement \Countable and therefore {content.201} (which is of type ContentArea) can not be used with iteration of the f:for viewhelper:
> TypeError
>
> count(): Argument #1 ($value) must be of type Countable|array, TYPO3\CMS\Core\Page\ContentArea given