original_string: protected function translateFieldCode(FieldsDefinition $fields, $fieldId)
      {
          $field = $fields->getField($fieldId);
          if ($field instanceof FieldInterface) {
              return  '{f' . $field->getOrder() . '}';
          }
  
          return $fieldId;
      }
code: protected function translateFieldCode(FieldsDefinition $fields, $fieldId)
      {
          $field = $fields->getField($fieldId);
          if ($field instanceof FieldInterface) {
              return  '{f' . $field->getOrder() . '}';
          }
  
          return $fieldId;
      }
code_tokens: protected function translateFieldCode ( FieldsDefinition $ fields , $ fieldId ) { $ field = $ fields -> getField ( $ fieldId ) ; if ( $ field instanceof FieldInterface ) { return '{f' . $ field -> getOrder ( ) . '}' ; } return $ fieldId ; }
docstring: Translate a field code to the field order number
  
  @param FieldsDefinition $fields
  @param string $fieldId
  @return string {order} or original value
docstring_tokens: Translate a field code to the field order number