original_string: public function onSuccess($locale, NodeInterface $node)
      {
          $this->eventDispatcher->dispatch(TadckaTreeEvents::NODE_EDIT_SUCCESS, new TreeNodeEvent($locale, $node));
          $this->textNodeManager->save();
  
          return $this->translator->trans('success.text_node_save', array(), 'SilvestraTextNodeBundle');
      }
code: public function onSuccess($locale, NodeInterface $node)
      {
          $this->eventDispatcher->dispatch(TadckaTreeEvents::NODE_EDIT_SUCCESS, new TreeNodeEvent($locale, $node));
          $this->textNodeManager->save();
  
          return $this->translator->trans('success.text_node_save', array(), 'SilvestraTextNodeBundle');
      }
code_tokens: public function onSuccess ( $ locale , NodeInterface $ node ) { $ this -> eventDispatcher -> dispatch ( TadckaTreeEvents :: NODE_EDIT_SUCCESS , new TreeNodeEvent ( $ locale , $ node ) ) ; $ this -> textNodeManager -> save ( ) ; return $ this -> translator -> trans ( 'success.text_node_save' , array ( ) , 'SilvestraTextNodeBundle' ) ; }
docstring: On edit text node success.
  
  @param string $locale
  @param NodeInterface $node
  
  @return string
docstring_tokens: On edit text node success .