-
-
Notifications
You must be signed in to change notification settings - Fork 554
Closed
Description
[generate:plugin:block] Default content broken
Problem/Motivation
While generating scaffolding for a block, the defaultConfiguration()
fn doesn't wrap the user added string in single quotes. Also, the build()
fn has a trypo - should be ['#content']
, not ['#conten']
.
The block class created is broken as a result..
How to reproduce
drupal generate:plugin:block
;- Type the module name for which the block is to belong;
- Enter the block name;
- Enter the plugin label;
- Enter the plugin id;
- Enter the region (optional);
- Enter no when asked about a container;
- Choose to generate a form structure;
- Create a textarea field;
- Enter a label;
- Input machine name;
- Enter a description;
- Enter a default value;
- Enter a weight;
- Press enter to stop adding fields;
- Choose not to create a template;
- Choose to complete the operation.
- Attempt to add the block through the GUI.
- Drupal version 8.8.1.
- Console version 1.9.4.
- Console Launcher version 1.9.4.
Solution
Fix to the twig template (#4218 ).
dmatthew
Metadata
Metadata
Assignees
Labels
No labels