original_string: public static function beforeSaveBody($text)
      {
          static::correctParams();
          $webfilesSubdir = static::$webfilesSubdir;
          $webfilesSubdirOld = static::$webfilesSubdirOld;
  
          $baseUrl = Yii::$app->urlManager->getBaseUrl();
          $trTable = [
              "src=\"{$baseUrl}/{$webfilesSubdirOld}" => "src=\"@{$webfilesSubdir}", //!! old -> new
              "src=\"{$baseUrl}/{$webfilesSubdir}" => "src=\"@{$webfilesSubdir}",
  
  //...todo add useful here...
  
          ];
          $text = strtr($text, $trTable);
          return $text;
      }
code: public static function beforeSaveBody($text)
      {
          static::correctParams();
          $webfilesSubdir = static::$webfilesSubdir;
          $webfilesSubdirOld = static::$webfilesSubdirOld;
  
          $baseUrl = Yii::$app->urlManager->getBaseUrl();
          $trTable = [
              "src=\"{$baseUrl}/{$webfilesSubdirOld}" => "src=\"@{$webfilesSubdir}", //!! old -> new
              "src=\"{$baseUrl}/{$webfilesSubdir}" => "src=\"@{$webfilesSubdir}",
  
  //...todo add useful here...
  
          ];
          $text = strtr($text, $trTable);
          return $text;
      }
code_tokens: public static function beforeSaveBody ( $ text ) { static :: correctParams ( ) ; $ webfilesSubdir = static :: $ webfilesSubdir ; $ webfilesSubdirOld = static :: $ webfilesSubdirOld ; $ baseUrl = Yii :: $ app -> urlManager -> getBaseUrl ( ) ; $ trTable = [ "src=\"{$baseUrl}/{$webfilesSubdirOld}" => "src=\"@{$webfilesSubdir}" , //!! old -> new "src=\"{$baseUrl}/{$webfilesSubdir}" => "src=\"@{$webfilesSubdir}" , //...todo add useful here... ] ; $ text = strtr ( $ text , $ trTable ) ; return $ text ; }
docstring: Prepare text to save after visual editor.
  @param string $text
  @return string
docstring_tokens: Prepare text to save after visual editor .