You are here

public function InstagramFeedsEventBase::getConfig in Instagram Feeds 8

Gets Instagram Feeds setting (except client_secret).

Parameters

string $key: Config key to obtain.

Return value

mixed Config key value.

File

src/Event/InstagramFeedsEventBase.php, line 59

Class

InstagramFeedsEventBase
En event occurs when instagram_feeds creates a new media entity.

Namespace

Drupal\instagram_feeds\Event

Code

public function getConfig($key) {

  // Do not share client_secret.
  return $key !== 'client_secret' ? $this->config
    ->get($key) : 'SECRET';
}