drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[command:name] Issues creating a form in a block

Open liquidcms opened this issue 3 years ago • 0 comments

Problem/Motivation

A few issues/suggestions/questions when creating a form followed by the block plugin (to hold the form):

  • why is there no option to NOT include a route to the form (it will go in a block; why does it need a route?)?
  • why does block add another instance of _theme function into my module when there already is one?
  • is it possible to delete/append items generated through console? For example, i added a block with no config; now i want to add config to it.

Details to include: Simply creation of a form in a block. Support "management" of console created items.

How to reproduce

Include steps related how to reproduce.

Details to include:

  • Drupal version: 8.9.3
  • Console version: drupal/console 1.9.5 The Drupal CLI. A tool to generate boilerplate code, inter... drupal/console-core 1.9.6 Drupal Console Core drupal/console-en 1.9.5 Drupal Console English Language drupal/console-extend-plugin 0.9.4 Drupal Console Extend Plugin
  • Console Launcher version: 1.9.5

Solution

  • include option to not add form route
  • when adding theme tpl look for existing _theme function and append to it
  • support adding to existing items
  • support removing code added for specific items

Details to include:

liquidcms avatar Oct 28 '20 15:10 liquidcms