protected function injectContent(SlotContent $slotContent, $content)
    {
        $regex = $this->getPattern($slotContent->getSlotName());
        if (false == preg_match($regex, $content, $match)) {
            return;
        }
        $newContent = $match[1] . PHP_EOL . $slotContent->getContent();

        return preg_replace($regex, $newContent, $content);
    }