Slide 8
Slide 8 text
CMI
● Replacement for variable_*
● Exportable
○ defaults => yaml
○ active => db
○ staging => files can be imported into active
user.flood.yml
user.mail.yml
user.role.anonymous.yml
user.role.authenticated.yml
user.settings.yml
$conf = \Drupal::config('user.flood');
uid_only: false
ip_limit: 50
ip_window: 3600
user_limit: 5
user_window: 21600
$conf->get(‘user_limit’);
5
$conf->set(‘user_limit’, 1);
$conf->save();