Skip to content
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

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

Open
liquidcms opened this issue Oct 28, 2020 · 0 comments
Open

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

liquidcms opened this issue Oct 28, 2020 · 0 comments

Comments

@liquidcms
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant