@@ -35,10 +35,10 @@ public static function getFields(string $driverName, Config $config): array
3535 '#required ' => true ,
3636 ];
3737
38- $ fields [ 'driver_container_settings__ ' . $ driverName ][ "phpfastcache_drivers_config_ {$ driverName }_sasl_username " ] = [
38+ $ fields [ 'driver_container_settings__ ' . $ driverName ][ "phpfastcache_drivers_config_ {$ driverName }_sasl_user " ] = [
3939 '#type ' => 'password ' ,
40- '#title ' => t ('Memcache SASL username ' ),
41- '#default_value ' => $ config ->get ("phpfastcache_drivers_config. {$ driverName }.username " ),
40+ '#title ' => t ('Memcache SASL user ' ),
41+ '#default_value ' => $ config ->get ("phpfastcache_drivers_config. {$ driverName }.user " ),
4242 '#description ' => t ('The Memcache SASL username, if needed ' ),
4343 '#required ' => false ,
4444 ];
@@ -60,7 +60,7 @@ public static function setConfig(string $driverName, FormStateInterface $form_st
6060 [
6161 'host ' => (string )$ form_state ->getValue ("phpfastcache_drivers_config_ {$ driverName }_host " ),
6262 'port ' => (int ) $ form_state ->getValue ("phpfastcache_drivers_config_ {$ driverName }_port " ),
63- 'sasl_username ' => (string )$ form_state ->getValue ("phpfastcache_drivers_config_ {$ driverName }_sasl_username " ),
63+ 'sasl_user ' => (string )$ form_state ->getValue ("phpfastcache_drivers_config_ {$ driverName }_sasl_user " ),
6464 'sasl_password ' => (string )$ form_state ->getValue ("phpfastcache_drivers_config_ {$ driverName }_sasl_password " ),
6565 ]
6666 );
0 commit comments