public copyContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public function copyContentType($contentTypeId)
{
$copiedContentType = $this->contentTypeService->copyContentType($this->contentTypeService->loadContentType($contentTypeId));
return new Values\ResourceCreated($this->router->generate('ezpublish_rest_loadContentType', array('contentTypeId' => $copiedContentType->id)));
}