Backend\Modules\ContentBlocks\Entity\ContentBlock::update PHP Method

update() public method

public update ( string $title, string $text, boolean $isHidden, string $template ) : ContentBlock
$title string
$text string
$isHidden boolean
$template string
return ContentBlock
    public function update($title, $text, $isHidden, $template)
    {
        $this->status = ContentBlockStatus::archived();
        return self::create($this->id, $this->userId, $this->extraId, $this->locale, $title, $text, $isHidden, $template);
    }