You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running DrupalConsole from master, and I notice and when I run generate:plugin:imageformatter and use the image formatter with the views module. I got the following error.
Fatal error: Class 'Drupal\bestmoduleever\Plugin\Field\FieldFormatter\Cache' not found in /Users/darrylnorris/Drupal/drupal-8.0.1/modules/custom/bestmoduleever/src/Plugin/Field/FieldFormatter/CasperImageFormatter.php on line 196
Steps to Reproduce this bug....
Generate a module generate:module
Generate a image formatter generate:plugin:imageformatter
Create view that contain an image field.
In the view field configuration, Change the image formatter to the module formatter. Like this...
Solution
We need to add this as part of the generator - use Drupal\Core\Cache\Cache;
The text was updated successfully, but these errors were encountered:
Problem / Motivation
I was running DrupalConsole from master, and I notice and when I run
generate:plugin:imageformatter
and use the image formatter with the views module. I got the following error.Steps to Reproduce this bug....
generate:module
generate:plugin:imageformatter
Solution
We need to add this as part of the generator -
use Drupal\Core\Cache\Cache;
The text was updated successfully, but these errors were encountered: