public abstract function countLocationsByContentId($contentId);
/** * Triggers delete operations for $trashItem. * If there is no more locations for corresponding content, then it will be deleted as well. * * @param \eZ\Publish\SPI\Persistence\Content\Location\Trashed $trashItem * * @return void */ protected function delete(Trashed $trashItem) { $this->locationGateway->removeElementFromTrash($trashItem->id); if ($this->locationGateway->countLocationsByContentId($trashItem->contentId) < 1) { $this->contentHandler->deleteContent($trashItem->contentId); } }