Use TYPO3 Core Flexform API
-
At https://gitlab.com/sanjay_nitsan/ns_basetheme/blob/master/Classes/Hooks/CmsLayout.php#L34
-
Please configure core API instead of such long-custom functions https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/FlexForms/Index.html#how-to-read-and-write-flexforms-from-php
Edited by Sanjay Chauhan