Bolt\Legacy\Content::setContenttype PHP Method

setContenttype() public method

Set the Contenttype for the record.
public setContenttype ( array | string $contenttype )
$contenttype array | string
    public function setContenttype($contenttype)
    {
        if (is_string($contenttype)) {
            $contenttype = $this->app['storage']->getContenttype($contenttype);
        }
        $this->contenttype = $contenttype;
    }