public function YoastSeoManager::getScoreToStatusRules in Real-time SEO for Drupal 8
Get rules to convert a score into a status, from the config file.
Return value
mixed Score to status rules will be returned.
2 calls to YoastSeoManager::getScoreToStatusRules()
- YoastSeoManager::getScoreStatus in src/
YoastSeoManager.php - Get the status for a given score.
- YoastSeoManager::setScoreToStatusRulesConfiguration in src/
YoastSeoManager.php - Set configuration for score to status rules.
File
- src/
YoastSeoManager.php, line 280
Class
- YoastSeoManager
- Class YoastSeoManager.
Namespace
Drupal\yoast_seoCode
public function getScoreToStatusRules() {
$score_to_status_rules = $this
->getConfiguration()['score_to_status_rules'];
ksort($score_to_status_rules);
return $score_to_status_rules;
}