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
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;
[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, thebuild()
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
;Solution
Fix to the twig template (#4218 ).
The text was updated successfully, but these errors were encountered: