You are here

function yoast_seo_update_8203 in Real-time SEO for Drupal 8.2

Move score label configuration into module settings.

File

./yoast_seo.install, line 76
Install, update, and uninstall functions for the Real-Time SEO module.

Code

function yoast_seo_update_8203() {
  \Drupal::configFactory()
    ->getEditable('yoast_seo.settings')
    ->set('score_rules', [
    0 => 'Not available',
    8 => 'Good',
    1 => 'Bad',
    5 => 'Okay',
  ])
    ->save();
}