protected function replaceContent(AlSlotContent $slotContent, $content)
    {
        $regex = $this->getPattern($slotContent->getSlotName());

        return preg_replace($regex, $slotContent->getContent(), $content);
    }