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;
    }
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;
    }
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 ; }
Updates id for multilingual inputs with custom id.

@param string $method
@param array $arguments
@param mixed $field
@return array
Updates id for multilingual inputs with custom id .