|
@@ 742-749 (lines=8) @@
|
| 739 |
|
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 740 |
|
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
| 741 |
|
*/ |
| 742 |
|
public function hideContent(int $contentId): Values\NoContent |
| 743 |
|
{ |
| 744 |
|
$contentInfo = $this->repository->getContentService()->loadContentInfo($contentId); |
| 745 |
|
|
| 746 |
|
$this->repository->getContentService()->hideContent($contentInfo); |
| 747 |
|
|
| 748 |
|
return new Values\NoContent(); |
| 749 |
|
} |
| 750 |
|
|
| 751 |
|
/** |
| 752 |
|
* @param int $contentId |
|
@@ 759-766 (lines=8) @@
|
| 756 |
|
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 757 |
|
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
| 758 |
|
*/ |
| 759 |
|
public function revealContent(int $contentId): Values\NoContent |
| 760 |
|
{ |
| 761 |
|
$contentInfo = $this->repository->getContentService()->loadContentInfo($contentId); |
| 762 |
|
|
| 763 |
|
$this->repository->getContentService()->revealContent($contentInfo); |
| 764 |
|
|
| 765 |
|
return new Values\NoContent(); |
| 766 |
|
} |
| 767 |
|
|
| 768 |
|
/** |
| 769 |
|
* Creates and executes a content view. |