$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml ds_chains/
FILE: C:\Users\SI-001\Downloads\ds_chains\src\ChainsUi.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
113 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\SI-001\Downloads\ds_chains\src\Plugin\DsField\ChainedField.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
110 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | drupal_coding_standard-3295464-6.patch | 5.4 KB | atul_ghate |
| #2 | t-calls-should-be-avoided-3295464-2.patch | 2.33 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
atul_ghate commentedHi,
I will review this patch
Comment #4
atul_ghate commentedComment #5
atul_ghate commentedHi,
your patch has resloved all above mentioned coding standard issues but there are still some remains , will work on that and will provide patch for the same
Comment #6
atul_ghate commentedHello,
providing a patch , please review.
Comment #7
atul_ghate commentedComment #9
larowlanThanks folks