From 061b1177f56cc7615979d61d075fdd0e48ea2492 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 4 Sep 2020 19:18:25 +0100 Subject: [PATCH] Fix config names --- tools/ansible/vars/deploy_vars.yml | 2 +- .../opdavies_blog/config/schema/opdavies_blog.schema.yml | 4 ++-- .../src/EventSubscriber/PushBlogPostToSocialMedia.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ansible/vars/deploy_vars.yml b/tools/ansible/vars/deploy_vars.yml index e619777..dc900c2 100644 --- a/tools/ansible/vars/deploy_vars.yml +++ b/tools/ansible/vars/deploy_vars.yml @@ -54,4 +54,4 @@ drupal_settings: $settings['reverse_proxy_header'] = 'CF-Connecting-IP'; $settings['omit_vary_cookie'] = TRUE; - $config['opdavies_talks.config']['zapier_post_tweet_url'] = '{{ zapier_post_tweet_url }}'; + $config['opdavies_blog.settings']['zapier_post_tweet_url'] = '{{ zapier_post_tweet_url }}'; diff --git a/web/modules/custom/opdavies_blog/config/schema/opdavies_blog.schema.yml b/web/modules/custom/opdavies_blog/config/schema/opdavies_blog.schema.yml index e7fbf81..5ef5baf 100644 --- a/web/modules/custom/opdavies_blog/config/schema/opdavies_blog.schema.yml +++ b/web/modules/custom/opdavies_blog/config/schema/opdavies_blog.schema.yml @@ -1,6 +1,6 @@ -opdavies_talks.settings: +opdavies_blog.settings: type: config_object - label: 'Talks module configuration' + label: 'Blog module configuration' mapping: zapier_post_tweet_url: type: string diff --git a/web/modules/custom/opdavies_blog/src/EventSubscriber/PushBlogPostToSocialMedia.php b/web/modules/custom/opdavies_blog/src/EventSubscriber/PushBlogPostToSocialMedia.php index 367c236..5418a27 100644 --- a/web/modules/custom/opdavies_blog/src/EventSubscriber/PushBlogPostToSocialMedia.php +++ b/web/modules/custom/opdavies_blog/src/EventSubscriber/PushBlogPostToSocialMedia.php @@ -24,7 +24,7 @@ final class PushBlogPostToSocialMedia implements EventSubscriberInterface { Client $client ) { $this->client = $client; - $this->config = $configFactory->get('opdavies_talks.config'); + $this->config = $configFactory->get('opdavies_blog.settings'); } /**