original_string: protected function updateArguments($method, $arguments, $field)
      {
          if ($method == 'widget' && isset($arguments[1]['options']['id'])) {
              $arguments[1]['options']['id'] = MultilingualHelper::getAttributeName($arguments[1]['options']['id'], $field->language);
          }
  
          if (in_array($method, ['textInput', 'textarea', 'radio', 'checkbox', 'fileInput', 'hiddenInput', 'passwordInput']) && isset($arguments[0]['id'])) {
              $arguments[0]['id'] = MultilingualHelper::getAttributeName($arguments[0]['id'], $field->language);
          }
  
          if (in_array($method, ['input', 'dropDownList', 'listBox', 'radioList', 'checkboxList']) && isset($arguments[1]['id'])) {
              $arguments[1]['id'] = MultilingualHelper::getAttributeName($arguments[1]['id'], $field->language);
          }
  
          return $arguments;
      }
code: protected function updateArguments($method, $arguments, $field)
      {
          if ($method == 'widget' && isset($arguments[1]['options']['id'])) {
              $arguments[1]['options']['id'] = MultilingualHelper::getAttributeName($arguments[1]['options']['id'], $field->language);
          }
  
          if (in_array($method, ['textInput', 'textarea', 'radio', 'checkbox', 'fileInput', 'hiddenInput', 'passwordInput']) && isset($arguments[0]['id'])) {
              $arguments[0]['id'] = MultilingualHelper::getAttributeName($arguments[0]['id'], $field->language);
          }
  
          if (in_array($method, ['input', 'dropDownList', 'listBox', 'radioList', 'checkboxList']) && isset($arguments[1]['id'])) {
              $arguments[1]['id'] = MultilingualHelper::getAttributeName($arguments[1]['id'], $field->language);
          }
  
          return $arguments;
      }
code_tokens: protected function updateArguments ( $ method , $ arguments , $ field ) { if ( $ method == 'widget' && isset ( $ arguments [ 1 ] [ 'options' ] [ 'id' ] ) ) { $ arguments [ 1 ] [ 'options' ] [ 'id' ] = MultilingualHelper :: getAttributeName ( $ arguments [ 1 ] [ 'options' ] [ 'id' ] , $ field -> language ) ; } if ( in_array ( $ method , [ 'textInput' , 'textarea' , 'radio' , 'checkbox' , 'fileInput' , 'hiddenInput' , 'passwordInput' ] ) && isset ( $ arguments [ 0 ] [ 'id' ] ) ) { $ arguments [ 0 ] [ 'id' ] = MultilingualHelper :: getAttributeName ( $ arguments [ 0 ] [ 'id' ] , $ field -> language ) ; } if ( in_array ( $ method , [ 'input' , 'dropDownList' , 'listBox' , 'radioList' , 'checkboxList' ] ) && isset ( $ arguments [ 1 ] [ 'id' ] ) ) { $ arguments [ 1 ] [ 'id' ] = MultilingualHelper :: getAttributeName ( $ arguments [ 1 ] [ 'id' ] , $ field -> language ) ; } return $ arguments ; }
docstring: Updates id for multilingual inputs with custom id.
  
  @param string $method
  @param array $arguments
  @param mixed $field
  @return array
docstring_tokens: Updates id for multilingual inputs with custom id .