Ojs\ApiBundle\Controller\Admin\AnnouncementRestController::getAnnouncementAction PHP Méthode

getAnnouncementAction() public méthode

Get single Announcement.
public getAnnouncementAction ( integer $id ) : AdminAnnouncement
$id integer the Announcement id
Résultat Ojs\AdminBundle\Entity\AdminAnnouncement
    public function getAnnouncementAction($id)
    {
        $entity = $this->getOr404($id);
        if (!$this->isGranted('VIEW', $entity)) {
            throw new AccessDeniedException();
        }
        return $entity;
    }