parent
5e107b48d6
commit
59a98b8d78
13 changed files with 268 additions and 0 deletions
|
@ -48,6 +48,10 @@ final class PushBlogPostToSocialMedia implements EventSubscriberInterface {
|
|||
$url = \Drupal::configFactory()->get('opdavies_talks.config')
|
||||
->get('zapier_post_tweet_url');
|
||||
|
||||
if (!$url) {
|
||||
return;
|
||||
}
|
||||
|
||||
\Drupal::httpClient()->post($url, [
|
||||
'form_params' => [
|
||||
'message' => $entity->toTweet(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue