original_string: public function getId($suffix = null)
      {
          $id = 'field';
          if ($this->arrayName) {
              $id .= '-'.$this->arrayName;
          }
  
          $id .= '-'.$this->fieldName;
  
          if ($suffix) {
              $id .= '-'.$suffix;
          }
  
          if ($this->idPrefix) {
              $id = $this->idPrefix . '-' . $id;
          }
  
          return HtmlHelper::nameToId($id);
      }
code: public function getId($suffix = null)
      {
          $id = 'field';
          if ($this->arrayName) {
              $id .= '-'.$this->arrayName;
          }
  
          $id .= '-'.$this->fieldName;
  
          if ($suffix) {
              $id .= '-'.$suffix;
          }
  
          if ($this->idPrefix) {
              $id = $this->idPrefix . '-' . $id;
          }
  
          return HtmlHelper::nameToId($id);
      }
code_tokens: public function getId ( $ suffix = null ) { $ id = 'field' ; if ( $ this -> arrayName ) { $ id .= '-' . $ this -> arrayName ; } $ id .= '-' . $ this -> fieldName ; if ( $ suffix ) { $ id .= '-' . $ suffix ; } if ( $ this -> idPrefix ) { $ id = $ this -> idPrefix . '-' . $ id ; } return HtmlHelper :: nameToId ( $ id ) ; }
docstring: Returns a value suitable for the field id property.
  @param  string $suffix Specify a suffix string
  @return string
docstring_tokens: Returns a value suitable for the field id property .