Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nehakhadke created an issue. See original summary.

nehakhadke’s picture

FileSize
15.3 KB
amit.drupal’s picture

FileSize
16.2 KB
1.74 KB

Use class - use Drupal\Core\StringTranslation\StringTranslationTrait; and submit new patch
I hope this is helpfull.

amit.drupal’s picture

Status: Active » Needs review
nehakhadke’s picture

vuil’s picture

Status: Needs review » Reviewed & tested by the community

@amit.drupal There is not need to add use statement because it is present in the ContextAwarePluginBase (already extended from parent class BlockBase).

So, @nehakhadke your patch is OK.

Thank you.

gaurav.kapoor’s picture

The patch didn't apply anymore because of recent changes, so I rerolled it with the latest release. Also, removed some of other deprecated functions.

  • gaurav.kapoor committed 8c7b054 on 8.x-1.x
    Issue #2819956 by amit.drupal, nehakhadke, gaurav.kapoor: $this->t()...
gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.