SendInBlue module will provides integration with the SendinBlue email delivery service. This module strive to be simple, management user-friendly, in order to help developers quickly and easily combine with SendinBlue email delivery service.
You can use this structure on custom blocks or pages form.
Base module features
* Connect to Sendinblue API for manage Contact
* Create a form on Page or Block to register in mailing-list
* Manage with IFRAME (for moment) all feature of SendinBlue (Contacts, mailing list, ect..)
Will arrive
* Set all transactionnals email with SendInBlue
* Api V3
* ...
Project link
https://www.drupal.org/project/sendinblue
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/sendinblue.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-sendinblue.git
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3135977-10.patch | 70 bytes | nitesh624 |
Comments
Comment #2
loicLEMEUT commentedComment #3
loicLEMEUT commentedComment #4
avpadernoComment #5
baskaran commentedReview of branch 8.x-1.2 (Got report from codesniffer)
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/sendinblue.info.yml
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
1 | WARNING | "core_version_requirement" property is missing in the info.yml file
--------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/sendinblue.module
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------
11 | WARNING | Global constants should not be used, move it to a class or interface
12 | WARNING | Global constants should not be used, move it to a class or interface
13 | WARNING | Global constants should not be used, move it to a class or interface
14 | WARNING | Global constants should not be used, move it to a class or interface
83 | WARNING | Messages are user facing text and must run through t() for translation
87 | WARNING | Messages are user facing text and must run through t() for translation
------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/ConfigurationSendinblueForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
39 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
42 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
49 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
60 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
89 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/LogoutForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
38 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
53 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
57 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
61 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/SubscribeForm.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------
54 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
141 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
146 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
226 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/RegisteringUserForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
48 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
49 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
51 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
52 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
52 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
57 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
59 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
61 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
72 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
89 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/TransactionnalEmailForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 15 WARNINGS AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------------------------------------------
36 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
58 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
66 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
67 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
69 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
70 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
70 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
76 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
77 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
91 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
103 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
110 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
123 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
124 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Form/SignupForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 44 WARNINGS AFFECTING 44 LINES
------------------------------------------------------------------------------------------------------------------------------------------
41 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
47 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
48 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
62 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
68 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
72 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
90 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
93 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
94 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
101 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
102 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
119 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
127 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
133 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
135 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
143 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
164 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
183 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
202 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
204 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
212 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
219 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
231 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
234 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
239 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
242 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
247 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
250 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
259 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
262 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
263 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
277 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
284 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
286 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
287 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
292 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
294 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
295 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
300 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
303 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
308 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
311 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
389 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
391 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Entity/Controller/SignupListBuilder.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
41 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
42 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
43 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
59 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
65 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
70 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
73 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
83 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
96 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
96 | WARNING | Unused variable $actions.
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Plugin/Derivative/SendinblueBlock.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
25 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/baskaran/Sites/devdesktop/drupal-8.8.1/modules/contrib/sendinblue/src/Plugin/Block/SendinblueBlock.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------
Comment #6
loicLEMEUT commentedHi @all, Hi @baskaran
I fix all problems.
Warning, I change branches (It was a very old project, unmaintened).
NEW Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/sendinblue.gitThanks
Comment #7
loicLEMEUT commentedComment #8
rohitrajputsahab commentedPlease solve these errors/warnings also.
------ ----------------------------------------------
Line src/Form/SubscribeForm.php
------ ----------------------------------------------
127 Variable $type might not be defined.
137 Variable $enumerations might not be defined.
242 Variable $templage_id might not be defined.
------ ----------------------------------------------
------ ----------------------------------------------------------------------
Line src/Routing/SubscribeRoutes.php
------ ----------------------------------------------------------------------
19 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/SendinblueMailin.php
------ ----------------------------------------------------------------------
28 \Drupal calls should be avoided in classes, use dependency injection
instead
31 \Drupal calls should be avoided in classes, use dependency injection
instead
52 \Drupal calls should be avoided in classes, use dependency injection
instead
74 \Drupal calls should be avoided in classes, use dependency injection
instead
77 Variable $body might not be defined.
92 \Drupal calls should be avoided in classes, use dependency injection
instead
111 \Drupal calls should be avoided in classes, use dependency injection
instead
114 Variable $body might not be defined.
------ ----------------------------------------------------------------------
------ -----------------------------------------
Line src/SendinblueManager.php
------ -----------------------------------------
355 Variable $subject might not be defined.
363 Variable $subject might not be defined.
369 Variable $subject might not be defined.
------ -----------------------------------------
Comment #9
nitesh624Comment #10
nitesh624Fixes the issue in #8
Comment #11
nitesh624Comment #12
loicLEMEUT commentedThanks @rohit-rajput-sahab.
@nitesh624 I applyed your patch, but he did'nt work :( , I repair it.
Now, that's ok ! :)
Thanks all !
Comment #13
loicLEMEUT commentedComment #14
avpadernoComment #15
ankush_03Comment #16
ankush_03Added Pareview Link in description
Comment #17
loicLEMEUT commentedThanks :)
Comment #18
sharma.amitt16 commentedThanks for your contribution. It looks great. Please find my suggestions below.
Coding Standard issues
sendinblue/src/SendinblueManager.php
You should use a constant or configuration for the BASE_URL of the external URL (https://my.sendinblue.com). This should not be hardcoded at multiple places in code.
Please use dependency injection in place of static calls to different services like database.
sendinblue/src/Entity/Controller/SignupListBuilder.php
same as previous please create a constant for external URL.
The rest looks good to me.
Comment #19
nitesh624Comment #20
avpadernoComment #21
loicLEMEUT commentedHello @sharma.amitt16 !
Thansk for your review, I fix all your suggests:
- PHPcs and Best practice
- Replace all statics to Drupal DI with Service.
- Add const for some URLs.
All changes fix on branch 8.x-1.x.
Many thanks.
Loïc
Comment #22
loicLEMEUT commentedComment #23
shaktikReview of the 8.x-1.x branch (commit 4a01dba): looks good to me no error found
Comment #24
loicLEMEUT commentedHello @here,
Are there other problem to fix ?
Or it's ok for @all ?
Thanks
Comment #25
klausiThanks for your contribution!
Comment #26
loicLEMEUT commentedHello @klausi !
Thanks for your review !
All changes fix on branch 8.x-1.x.
Many thanks.
Loïc
Comment #27
loicLEMEUT commentedComment #28
klausiOtherwise looks good to me.
Thanks for your contribution, Loïc!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #29
loicLEMEUT commentedHello @klausi !
Thanks for all !