protected function InstagramAccountForm::getConfig in Instagram Feeds 8
Gets data from the instagram_feeds.settings configuration object.
Parameters
string $key: A string that maps to a key within the configuration data.
Return value
mixed The data that was requested.
4 calls to InstagramAccountForm::getConfig()
- InstagramAccountForm::actions in src/
Form/ InstagramAccountForm.php - Returns an array of supported actions for the current entity form.
- InstagramAccountForm::form in src/
Form/ InstagramAccountForm.php - Gets the actual form array to be built.
- InstagramAccountForm::getAuthWindowButton in src/
Form/ InstagramAccountForm.php - Gets link to Instagram Auth Window.
- InstagramAccountForm::prepareEntity in src/
Form/ InstagramAccountForm.php - Prepares the entity object before the form is built first.
File
- src/
Form/ InstagramAccountForm.php, line 30
Class
- InstagramAccountForm
- Provides the InstagramAccount add/edit form.
Namespace
Drupal\instagram_feeds\FormCode
protected function getConfig($key = '') {
if (!isset($this->config)) {
$this->instagram_feeds_config = $this
->config('instagram_feeds.settings');
}
return $this->instagram_feeds_config
->get($key);
}