public function findAll($pageTsPids = array())
    {
        $backendLayouts = array();

        // search all the pids for backend layouts defined in the pageTS
        foreach ($pageTsPids as $pid) {
            $pageTsConfig = (array)\TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($pid);
            $dataProviderContext = $this->backendLayoutView->createDataProviderContext()->setPageTsConfig($pageTsConfig);
            $backendLayoutCollections = $this->backendLayoutView->getDataProviderCollection()->getBackendLayoutCollections($dataProviderContext);
            foreach ($backendLayoutCollections["default"]->getAll() as $backendLayout) {
                $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
            }
            foreach ($backendLayoutCollections["pagets"]->getAll() as $backendLayout) {
                $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
            }
        }

        // also search in the database for backendlayouts
        $databaseBackendLayouts = parent::findAll();
        foreach ($databaseBackendLayouts as $layout) {
            $backendLayout = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayout($layout->getUid(),
                $layout->getTitle(), "");
            if ($layout->getIcon()) {
                $backendLayout->setIconPath('/uploads/media/' . $layout->getIcon());
            }
            $backendLayout->setDescription($layout->getDescription());
            $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
        }
        return $backendLayouts;
    }
public function findAll($pageTsPids = array())
    {
        $backendLayouts = array();

        // search all the pids for backend layouts defined in the pageTS
        foreach ($pageTsPids as $pid) {
            $pageTsConfig = (array)\TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($pid);
            $dataProviderContext = $this->backendLayoutView->createDataProviderContext()->setPageTsConfig($pageTsConfig);
            $backendLayoutCollections = $this->backendLayoutView->getDataProviderCollection()->getBackendLayoutCollections($dataProviderContext);
            foreach ($backendLayoutCollections["default"]->getAll() as $backendLayout) {
                $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
            }
            foreach ($backendLayoutCollections["pagets"]->getAll() as $backendLayout) {
                $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
            }
        }

        // also search in the database for backendlayouts
        $databaseBackendLayouts = parent::findAll();
        foreach ($databaseBackendLayouts as $layout) {
            $backendLayout = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayout($layout->getUid(),
                $layout->getTitle(), "");
            if ($layout->getIcon()) {
                $backendLayout->setIconPath('/uploads/media/' . $layout->getIcon());
            }
            $backendLayout->setDescription($layout->getDescription());
            $backendLayouts[$backendLayout->getIdentifier()] = $backendLayout;
        }
        return $backendLayouts;
    }
public function findAll ( $ pageTsPids = array ( ) ) { $ backendLayouts = array ( ) ; // search all the pids for backend layouts defined in the pageTS foreach ( $ pageTsPids as $ pid ) { $ pageTsConfig = ( array ) \ TYPO3 \ CMS \ Backend \ Utility \ BackendUtility :: getPagesTSconfig ( $ pid ) ; $ dataProviderContext = $ this -> backendLayoutView -> createDataProviderContext ( ) -> setPageTsConfig ( $ pageTsConfig ) ; $ backendLayoutCollections = $ this -> backendLayoutView -> getDataProviderCollection ( ) -> getBackendLayoutCollections ( $ dataProviderContext ) ; foreach ( $ backendLayoutCollections [ "default" ] -> getAll ( ) as $ backendLayout ) { $ backendLayouts [ $ backendLayout -> getIdentifier ( ) ] = $ backendLayout ; } foreach ( $ backendLayoutCollections [ "pagets" ] -> getAll ( ) as $ backendLayout ) { $ backendLayouts [ $ backendLayout -> getIdentifier ( ) ] = $ backendLayout ; } } // also search in the database for backendlayouts $ databaseBackendLayouts = parent :: findAll ( ) ; foreach ( $ databaseBackendLayouts as $ layout ) { $ backendLayout = new \ TYPO3 \ CMS \ Backend \ View \ BackendLayout \ BackendLayout ( $ layout -> getUid ( ) , $ layout -> getTitle ( ) , "" ) ; if ( $ layout -> getIcon ( ) ) { $ backendLayout -> setIconPath ( '/uploads/media/' . $ layout -> getIcon ( ) ) ; } $ backendLayout -> setDescription ( $ layout -> getDescription ( ) ) ; $ backendLayouts [ $ backendLayout -> getIdentifier ( ) ] = $ backendLayout ; } return $ backendLayouts ; }
Returns all backendlayouts defined, database and pageTs
@param array $pageTsPids
@return array
Returns all backendlayouts defined database and pageTs