-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[generate:plugin:block] #3860
Comments
@novia713 Can you explain what we can do here if it works in the latest version? |
got this error in the same case:
written 16 times, then:
Block file was generated Drupal 8.5.6 |
I encountered the same issue with Drupal 8.6.1 and Drupal Console 1.8.0
The error is displayed after generating resulting file. |
Can you please help? Enable the learning mode and follow the steps to reproduce the issue. Then just copy the command generated for me |
OK, I have found the issue - #3959 |
It has been merged |
I received an error after generating a block. Here are the steps plus error message: `// Welcome to the Drupal Plugin Block generator
Enter the plugin class name [DefaultBlock]:
Enter the plugin label [React datepicker block]: Enter the plugin id [react_datepicker_block]: Enter the theme region to render the Plugin Block. []:
Do you want to load services from the container? (yes/no) [no]: You can add input fields to create special configurations in the block.
Do you want to generate a themeable template? (yes/no) [no]:
Do you want proceed with the operation? (yes/no) [yes]: // cache:rebuild Rebuilding cache(s), wait a moment please. [OK] Done clearing cache(s). Generated or updated files Generated lines: 60 [ERROR] Warning: Invalid argument supplied for foreach() in Drupal\Console\Generator\PluginBlockGenerator->generate() (line 46 of /var/www/html/vendor/drupal/console/src/Generator/PluginBlockGenerator.php). Drupal\Console\Generator\PluginBlockGenerator->generate(Array) (Line: 215)` |
@jdanaher-shine I think the problem is answering no in 'Do you want to generate a form structure?'. If you answer yes and define at least a field for title you will not get the error. |
after wizard generation a block with a form inside, drupalconsole does not generate the block and appears this error
this happened with DrupalConsole 1.6.1, with 1.8 it works well
The text was updated successfully, but these errors were encountered: