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

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

        return preg_replace($regex, $slotContent->getContent(), $content);
    }
protected function replaceContent ( AlSlotContent $ slotContent , $ content ) { $ regex = $ this -> getPattern ( $ slotContent -> getSlotName ( ) ) ; return preg_replace ( $ regex , $ slotContent -> getContent ( ) , $ content ) ; }
Replaces rhe content on the current slot with the new one

@param AlSlotContent $slotContent
@param string $content The content to replace
@return string
Replaces rhe content on the current slot with the new one