1212 * of the License, or any later version.
1313 */
1414
15+ use function array_map ;
1516use B13 \Container \Domain \Factory \FrontendContainerFactory ;
1617use B13 \Container \Tca \Registry ;
1718use Psr \Log \LoggerInterface ;
2627use TYPO3 \CMS \Core \Utility \GeneralUtility ;
2728use TYPO3 \CMS \Frontend \ContentObject \ContentDataProcessor ;
2829use TYPO3 \CMS \Frontend \ContentObject \ContentObjectRenderer ;
29- use TYPO3 \CMS \Frontend \ContentObject \DataProcessorInterface ;
3030
31- use function array_map ;
31+ use TYPO3 \ CMS \ Frontend \ ContentObject \ DataProcessorInterface ;
3232
3333/**
3434 * Automatically detects if content element has container columns
4949 *
5050 * html:
5151 * <f:render.contentArea contentArea="{content.200}" />
52- *
5352 */
5453#[Autoconfigure(public: true )]
5554readonly class ContentAreaProcessor implements DataProcessorInterface
5655{
57-
5856 public function __construct (
5957 protected ContentDataProcessor $ contentDataProcessor ,
6058 protected Context $ context ,
@@ -63,7 +61,8 @@ public function __construct(
6361 protected RecordFactory $ recordFactory ,
6462 protected Typo3Version $ typo3Version ,
6563 protected LoggerInterface $ logger ,
66- ) {}
64+ ) {
65+ }
6766
6867 public function process (
6968 ContentObjectRenderer $ cObj ,
@@ -98,7 +97,7 @@ function () use (&$container, $CType, $cObj, $record, $colPos): ContentArea {
9897
9998 $ rows = $ container ->getChildrenByColPos ($ colPos );
10099
101- $ records = array_map (fn ($ row ) => $ this ->recordFactory ->createFromDatabaseRow ('tt_content ' , $ row ), $ rows );
100+ $ records = array_map (fn ($ row ) => $ this ->recordFactory ->createFromDatabaseRow ('tt_content ' , $ row ), $ rows );
102101 return new ContentArea (
103102 (string )$ colPos ,
104103 $ this ->tcaRegistry ->getColPosName ($ record ['CType ' ], $ colPos ),
0 commit comments