You are here

protected function EntityHelperTrait::config in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 src/Normalizer/EntityHelperTrait.php \Drupal\fb_instant_articles\Normalizer\EntityHelperTrait::config()

Convenience method for getting the right config object.

Return value

\Drupal\Core\Config\ImmutableConfig Facebook Instant Articles config object.

File

src/Normalizer/EntityHelperTrait.php, line 27

Class

EntityHelperTrait
Common entity data getters shared between the normalizers.

Namespace

Drupal\fb_instant_articles\Normalizer

Code

protected function config() {
  if (!$this->config) {
    $this->config = \Drupal::config('fb_instant_articles.settings');
  }
  return $this->config;
}