original_string: protected function prepareDataOutput()
      {
          $this->data['_css'] = $this->getCss();
  
          foreach (array('top', 'bottom') as $position) {
              $this->data["_js_$position"] = $this->getJs($position);
              $this->setJsTranslation($this->data["_js_$position"]);
          }
  
          $this->hook->attach('template.data', $this->data, $this);
  
          gplcart_array_sort($this->data['_css']);
          gplcart_array_sort($this->data['_js_top']);
          gplcart_array_sort($this->data['_js_bottom']);
      }
code: protected function prepareDataOutput()
      {
          $this->data['_css'] = $this->getCss();
  
          foreach (array('top', 'bottom') as $position) {
              $this->data["_js_$position"] = $this->getJs($position);
              $this->setJsTranslation($this->data["_js_$position"]);
          }
  
          $this->hook->attach('template.data', $this->data, $this);
  
          gplcart_array_sort($this->data['_css']);
          gplcart_array_sort($this->data['_js_top']);
          gplcart_array_sort($this->data['_js_bottom']);
      }
code_tokens: protected function prepareDataOutput ( ) { $ this -> data [ '_css' ] = $ this -> getCss ( ) ; foreach ( array ( 'top' , 'bottom' ) as $ position ) { $ this -> data [ "_js_$position" ] = $ this -> getJs ( $ position ) ; $ this -> setJsTranslation ( $ this -> data [ "_js_$position" ] ) ; } $ this -> hook -> attach ( 'template.data' , $ this -> data , $ this ) ; gplcart_array_sort ( $ this -> data [ '_css' ] ) ; gplcart_array_sort ( $ this -> data [ '_js_top' ] ) ; gplcart_array_sort ( $ this -> data [ '_js_bottom' ] ) ; }
docstring: Prepare template data variables before output
docstring_tokens: Prepare template data variables before output