You are here

public function YoastSeoManager::getConfiguration in Real-time SEO for Drupal 8

Get configuration from Yaml file.

Return value

mixed Configuration details will be returned.

File

src/YoastSeoManager.php, line 265

Class

YoastSeoManager
Class YoastSeoManager.

Namespace

Drupal\yoast_seo

Code

public function getConfiguration() {
  $conf = Yaml::parse(file_get_contents(drupal_get_path('module', 'yoast_seo') . '/config/yoast_seo.yml'));
  return $conf;
}