/** * Deletes a content object including all its versions and locations including their subtrees. * * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to delete the content (in one of the locations of the given content object) * * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo */ public function deleteContent( ContentInfo $contentInfo ) { $returnValue = $this->service->deleteContent( $contentInfo ); $this->signalDispatcher->emit( new DeleteContentSignal( array( 'contentId' => $contentInfo->id, ) ) ); return $returnValue; }