Sulu\Bundle\ContentBundle\Controller\NodeController::putAction PHP Метод

putAction() публичный Метод

saves node with given uuid and data.
public putAction ( Request $request, string $uuid ) : Response
$request Symfony\Component\HttpFoundation\Request
$uuid string
Результат Symfony\Component\HttpFoundation\Response
    public function putAction(Request $request, $uuid)
    {
        $language = $this->getLanguage($request);
        $action = $request->get('action');
        $this->checkActionParameterSecurity($action, $language, $uuid);
        $document = $this->getDocumentManager()->find($uuid, $language, ['load_ghost_content' => false, 'load_shadow_content' => false]);
        $type = $this->getMetadataFactory()->getMetadataForClass(get_class($document))->getAlias();
        $this->get('sulu_hash.request_hash_checker')->checkHash($request, $document, $document->getUuid());
        $this->persistDocument($request, $type, $document, $language);
        $this->handleActionParameter($action, $document, $language);
        $this->getDocumentManager()->flush();
        $view = $this->view($document);
        $view->setSerializationContext(SerializationContext::create()->setSerializeNull(true)->setGroups(['defaultPage']));
        return $this->handleView($view);
    }