original_string: public function onNewAction(Request $request, Visitor $visitor, Action $action)
      {
          if (!($action instanceof ActionPageview)) {
              // save value only in case it is a page view.
              return false;
          }
  
          $value = Common::getRequestVar('my_page_keywords', false, 'string', $request->getParams());
  
          if (false === $value) {
              return $value;
          }
  
          $value = trim($value);
  
          return substr($value, 0, 255);
      }
code: public function onNewAction(Request $request, Visitor $visitor, Action $action)
      {
          if (!($action instanceof ActionPageview)) {
              // save value only in case it is a page view.
              return false;
          }
  
          $value = Common::getRequestVar('my_page_keywords', false, 'string', $request->getParams());
  
          if (false === $value) {
              return $value;
          }
  
          $value = trim($value);
  
          return substr($value, 0, 255);
      }
code_tokens: public function onNewAction ( Request $ request , Visitor $ visitor , Action $ action ) { if ( ! ( $ action instanceof ActionPageview ) ) { // save value only in case it is a page view. return false ; } $ value = Common :: getRequestVar ( 'my_page_keywords' , false , 'string' , $ request -> getParams ( ) ) ; if ( false === $ value ) { return $ value ; } $ value = trim ( $ value ) ; return substr ( $ value , 0 , 255 ) ; }
docstring: This event is triggered before a new action is logged to the log_link_visit_action table. It overwrites any
  looked up action so it makes usually no sense to implement both methods but it sometimes does. You can assign
  any value to the column or return boolan false in case you do not want to save any value.
  
  @param Request $request
  @param Visitor $visitor
  @param Action $action
  
  @return mixed|false
docstring_tokens: This event is triggered before a new action is logged to the log_link_visit_action table . It overwrites any looked up action so it makes usually no sense to implement both methods but it sometimes does . You can assign any value to the column or return boolan false in case you do not want to save any value .