src/Sulu/Component/Snippet/Export/SnippetExport.php
public function getExportData()
    {
        $snippets = $this->getSnippets();
        $snippetsData = [];

        $progress = new ProgressBar($this->output, count($snippets));
        $progress->start();

        /*
         * @var SnippetDocument
         */
        foreach ($snippets as $snippet) {
            $contentData = $this->getContentData($snippet, $this->exportLocale);

            $snippetsData[] = [
                'uuid' => $snippet->getUuid(),
                'locale' => $snippet->getLocale(),
                'content' => $contentData,
            ];

            $progress->advance();
        }

        $progress->finish();

        return [
            'locale' => $this->exportLocale,
            'format' => $this->format,
            'snippetData' => $snippetsData,
        ];
    }
public function getExportData()
    {
        $snippets = $this->getSnippets();
        $snippetsData = [];

        $progress = new ProgressBar($this->output, count($snippets));
        $progress->start();

        /*
         * @var SnippetDocument
         */
        foreach ($snippets as $snippet) {
            $contentData = $this->getContentData($snippet, $this->exportLocale);

            $snippetsData[] = [
                'uuid' => $snippet->getUuid(),
                'locale' => $snippet->getLocale(),
                'content' => $contentData,
            ];

            $progress->advance();
        }

        $progress->finish();

        return [
            'locale' => $this->exportLocale,
            'format' => $this->format,
            'snippetData' => $snippetsData,
        ];
    }
public function getExportData ( ) { $ snippets = $ this -> getSnippets ( ) ; $ snippetsData = [ ] ; $ progress = new ProgressBar ( $ this -> output , count ( $ snippets ) ) ; $ progress -> start ( ) ; /*
         * @var SnippetDocument
         */ foreach ( $ snippets as $ snippet ) { $ contentData = $ this -> getContentData ( $ snippet , $ this -> exportLocale ) ; $ snippetsData [ ] = [ 'uuid' => $ snippet -> getUuid ( ) , 'locale' => $ snippet -> getLocale ( ) , 'content' => $ contentData , ] ; $ progress -> advance ( ) ; } $ progress -> finish ( ) ; return [ 'locale' => $ this -> exportLocale , 'format' => $ this -> format , 'snippetData' => $ snippetsData , ] ; }
Returns all data that we need to create a xliff-File.

@return array

@throws DocumentManagerException
Returns all data that we need to create a xliff - File .