Problem/Motivation
#options values usually have to run through t() for translation
\Drupal calls should be avoided in classes, use dependency injection instead
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phpcs-issue-found-3337905-2.patch | 1.73 KB | ashutosh ahirwal |
#options values usually have to run through t() for translation
\Drupal calls should be avoided in classes, use dependency injection instead
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phpcs-issue-found-3337905-2.patch | 1.73 KB | ashutosh ahirwal |
Comments
Comment #2
ashutosh ahirwal commentedProviding patch for reference.
Comment #4
jayhuskinsYour patch was a good start. Note that for custom Plugins, they must also implement `ContainerFactoryPluginInterface` in order to use the create method and the construction method must include the configuration, plugin id and plugin definition parameters.