Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Added settings
Browse files Browse the repository at this point in the history
  • Loading branch information
leevigraham committed Feb 16, 2021
1 parent a364279 commit c508444
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,18 @@
* @see: See the [official documentation](https://developers.google.com/places/web-service/get-api-key).
*/
'googleApiKey' => '',

/**
* Facebook Token
*
* @see: See the [official documentation](https://developers.facebook.com/docs/plugins/oembed).
*/
'facebookToken' => '',

/**
* Instagram Token
*
* @see: See the [official documentation](https://developers.facebook.com/docs/instagram/oembed).
*/
'instagramToken' => '',
];
3 changes: 2 additions & 1 deletion src/models/Settings.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace newism\fields\models;

use craft\base\Model;
Expand All @@ -18,7 +19,7 @@ public function behaviors()
'attributes' => [
'googleApiKey',
'facebookToken',
'instagramToken'
'instagramToken',
],
],
];
Expand Down

0 comments on commit c508444

Please sign in to comment.