private function setSubject($blockId): BaseBlock
    {
        /** @var BaseBlock $block */
        $block = $this->admin->getObject($blockId);
        if (!$block) {
            throw $this->createNotFoundException(sprintf('Unable to find block with id %d', $blockId));
        }
        $this->admin->setSubject($block);

        return $block;
    }
private function setSubject($blockId): BaseBlock
    {
        /** @var BaseBlock $block */
        $block = $this->admin->getObject($blockId);
        if (!$block) {
            throw $this->createNotFoundException(sprintf('Unable to find block with id %d', $blockId));
        }
        $this->admin->setSubject($block);

        return $block;
    }
private function setSubject ( $ blockId ) : BaseBlock { /** @var BaseBlock $block */ $ block = $ this -> admin -> getObject ( $ blockId ) ; if ( ! $ block ) { throw $ this -> createNotFoundException ( sprintf ( 'Unable to find block with id %d' , $ blockId ) ) ; } $ this -> admin -> setSubject ( $ block ) ; return $ block ; }
Initialize the admin subject, to contextualize checkAccess verification.

@param mixed $blockId

@throws NotFoundHttpException

@return BaseBlock
Initialize the admin subject to contextualize checkAccess verification .