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