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;
}