Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
@amit.drupal There is not need to add use statement because it is present in the ContextAwarePluginBase (already extended from parent class BlockBase).
Comments
Comment #2
nehakhadke commentedComment #3
amit.drupal commentedUse class - use Drupal\Core\StringTranslation\StringTranslationTrait; and submit new patch
I hope this is helpfull.
Comment #4
amit.drupal commentedComment #5
nehakhadke commentedComment #6
vuil@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.
Comment #7
gaurav.kapoor commentedThe patch didn't apply anymore because of recent changes, so I rerolled it with the latest release. Also, removed some of other deprecated functions.
Comment #9
gaurav.kapoor commented