Problem/Motivation

Since Drush 11.x, the package for drupal code generator was bump to new major version.
https://packagist.org/packages/drush/drush#11.0.0
https://packagist.org/packages/chi-teck/drupal-code-generator#2.3.0

In this version, generators was revamp and the drush command in this module doesn't work anymore.

Steps to reproduce

  • Install drush 11.x with composer.
  • Run command drush generate subentity

Proposed resolution

https://www.drush.org/latest/generators/#overview

---

Any plan to support Drush 11.x (also means dropping support for Drupal 8) ?

Issue fork subentity-3268566

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anfor created an issue. See original summary.

anfor’s picture

Status: Active » Needs review
fchometon’s picture

Test with drush 11, the command "drush generate subentity" works correctly.

The entity is well created as well as the files links.menu.yml, links.task.yml and routing.yml

SylvainM made their first commit to this issue’s fork.

sylvainm’s picture

bundable entity was broken, it is fixed with this commit

I suggest to create a new branch: 2.x compatible with drush 11+ and to modifiy 1.x branch to make it incompatible with drush 11+
Then, a 2.0 release can be done, recommended; and a new 1.2 release is done, deprecated

  • MaxPah committed 753134f on 2.x authored by anfor
    Issue #3268566: Compatibility with DCG v2
    
maxpah’s picture

Version: 1.x-dev » 2.x-dev
Status: Needs review » Fixed
maxpah’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.