public function getTextsWithBaseTexts($language)
    {
        $texts = $this->getPageTexts($language);

        if ($language !== $this->baseLang) {
            $baseTexts = $this->getPageTexts($this->baseLang);

            $texts = array_map(
                function ($text, $baseText) {
                    return $text + array("basecontent" => $baseText['content']);
                },
                $texts,
                $baseTexts
            );
        }

        return $texts;
    }
public function getTextsWithBaseTexts($language)
    {
        $texts = $this->getPageTexts($language);

        if ($language !== $this->baseLang) {
            $baseTexts = $this->getPageTexts($this->baseLang);

            $texts = array_map(
                function ($text, $baseText) {
                    return $text + array("basecontent" => $baseText['content']);
                },
                $texts,
                $baseTexts
            );
        }

        return $texts;
    }
Returns the texts including an information about the text in the base language.

@param $language
@return array