original_string: public function detailsAction(Request $request, $id)
      {
          $manager = $this->get('opifer.content.content_manager');
          $content = $manager->getRepository()->find($id);
  
          $form = $this->createForm(ContentType::class, $content);
          $form->handleRequest($request);
  
          if ($form->isValid()) {
              $manager->save($content);
          }
  
          return $this->render($this->getParameter('opifer_content.content_details_view'), [
              'content' => $content,
              'form' => $form->createView()
          ]);
      }
code: public function detailsAction(Request $request, $id)
      {
          $manager = $this->get('opifer.content.content_manager');
          $content = $manager->getRepository()->find($id);
  
          $form = $this->createForm(ContentType::class, $content);
          $form->handleRequest($request);
  
          if ($form->isValid()) {
              $manager->save($content);
          }
  
          return $this->render($this->getParameter('opifer_content.content_details_view'), [
              'content' => $content,
              'form' => $form->createView()
          ]);
      }
code_tokens: public function detailsAction ( Request $ request , $ id ) { $ manager = $ this -> get ( 'opifer.content.content_manager' ) ; $ content = $ manager -> getRepository ( ) -> find ( $ id ) ; $ form = $ this -> createForm ( ContentType :: class , $ content ) ; $ form -> handleRequest ( $ request ) ; if ( $ form -> isValid ( ) ) { $ manager -> save ( $ content ) ; } return $ this -> render ( $ this -> getParameter ( 'opifer_content.content_details_view' ) , [ 'content' => $ content , 'form' => $ form -> createView ( ) ] ) ; }
docstring: Details action.
  
  @param Request $request
  @param integer $directoryId
  
  @return \Symfony\Component\HttpFoundation\Response
docstring_tokens: Details action .