deleteContent() 공개 메소드

The content is deleted. If the content has locations (which is required in 4.x) on delete all locations assigned the content object are deleted via delete subtree.
public deleteContent ( mixed $contentId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$contentId mixed
리턴 eZ\Publish\Core\REST\Server\Values\NoContent
예제 #1
0
 public function deleteContent($contentId)
 {
     if (!$this->isUserContent($contentId)) {
         return parent::deleteContent($contentId);
     }
     $this->repository->getUserService()->deleteUser($this->repository->getUserService()->loadUser($contentId));
     return new NoContent();
 }