Classes/Service/PluginConfigurationService.php
public function user_templateLayout(array &$config)
    {
        $pageId = 0;
        $currentColPos = $config['flexParentDatabaseRow']['colPos'];
        $pageId = $this->getPageId($config['flexParentDatabaseRow']['pid']);
        if ($pageId > 0) {
            $templateLayouts = $this->templateLayoutsUtility->getAvailableTemplateLayouts($pageId);
            $templateLayouts = $this->reduceTemplateLayouts($templateLayouts, $currentColPos);
            foreach ($templateLayouts as $layout) {
                $additionalLayout = [
          htmlspecialchars($this->getLanguageService()->sL($layout[0])),
          $layout[1]
        ];
                array_push($config['items'], $additionalLayout);
            }
        }
    }
public function user_templateLayout(array &$config)
    {
        $pageId = 0;
        $currentColPos = $config['flexParentDatabaseRow']['colPos'];
        $pageId = $this->getPageId($config['flexParentDatabaseRow']['pid']);
        if ($pageId > 0) {
            $templateLayouts = $this->templateLayoutsUtility->getAvailableTemplateLayouts($pageId);
            $templateLayouts = $this->reduceTemplateLayouts($templateLayouts, $currentColPos);
            foreach ($templateLayouts as $layout) {
                $additionalLayout = [
          htmlspecialchars($this->getLanguageService()->sL($layout[0])),
          $layout[1]
        ];
                array_push($config['items'], $additionalLayout);
            }
        }
    }
public function user_templateLayout ( array & $ config ) { $ pageId = 0 ; $ currentColPos = $ config [ 'flexParentDatabaseRow' ] [ 'colPos' ] ; $ pageId = $ this -> getPageId ( $ config [ 'flexParentDatabaseRow' ] [ 'pid' ] ) ; if ( $ pageId > 0 ) { $ templateLayouts = $ this -> templateLayoutsUtility -> getAvailableTemplateLayouts ( $ pageId ) ; $ templateLayouts = $ this -> reduceTemplateLayouts ( $ templateLayouts , $ currentColPos ) ; foreach ( $ templateLayouts as $ layout ) { $ additionalLayout = [ htmlspecialchars ( $ this -> getLanguageService ( ) -> sL ( $ layout [ 0 ] ) ) , $ layout [ 1 ] ] ; array_push ( $ config [ 'items' ] , $ additionalLayout ) ; } } }
Itemsproc function to extend the selection of templateLayouts in the plugin

@param array &$config configuration array
Itemsproc function to extend the selection of templateLayouts in the plugin