File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Documentation/ContentObjects/Extbaseplugin/_CodeSnippets Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ public function listAction(): ResponseInterface
14
14
{
15
15
/** @var ContentObjectRenderer $contentObject */
16
16
$ contentObject = $ this ->request ->getAttribute ('currentContentObject ' );
17
- $ dataFromTypoScript = $ contentObject ->getCurrentVal ();
18
- if (is_array ($ dataFromTypoScript )) {
19
- $ someValue = (int )($ dataFromTypoScript ['someValue ' ] ?? 0 );
20
- $ someSetting = $ dataFromTypoScript ['someSetting ' ] ?? '' ;
21
- // Do something
22
- }
17
+ $ dataFromTypoScript = $ contentObject ->data ;
18
+ $ someValue = (int )($ dataFromTypoScript ['someValue ' ] ?? 0 );
19
+ $ someSetting = $ dataFromTypoScript ['someSetting ' ] ?? '' ;
20
+ // Do something
23
21
return $ this ->htmlResponse ();
24
22
}
25
23
}
You can’t perform that action at this time.
0 commit comments