drupal-code-generator icon indicating copy to clipboard operation
drupal-code-generator copied to clipboard

A code generator for Drupal.

Results 48 drupal-code-generator issues
Sort by recently updated
recently updated
newest added

Added the new generator for creating Drupal batch processing classes.

Drupal >11.1.0 has support for hook implementations in classes with attributes. https://www.drupal.org/node/3442349 And it seems that many core hooks are moving to this kind of implementation. Is there any interest...

Drush has switched to Laravel Prompts. https://laravel.com/docs/11.x/prompts#multisearch

In `templates/Entity/_content-entity/src/Entity/Example.php.twig` the path for the `collection` is hard-coded to `/admin/content/{{ entity_type_id_short|u2h }}` and does not use the `entity_base_path` provided. In my opinion this should be `{{ entity_base_path }}`. What...

I would like to add the command to generate Paragraphs behavior plugins. How should it be named? `plugin:paragraphs:behavior` or without an extra namespace just `plugin:paragraphs-behavior`?

At the root of this is this core issue: https://www.drupal.org/project/drupal/issues/2509360 In short, the generated form throws an exception incorrectly in some cases when a custom entity is hooked up for...

For REST services it is sometimes needed to create authentication providers. Would be useful to have a generator for this. Here is the template from the drupal console one: https://github.com/hechoendrupal/drupal-console/blob/master/templates/module/src/Authentication/Provider/authentication-provider.php.twig

With the memcache module configured in settings.php I get ``` $ ./vendor/bin/dcg --help [18-Oct-2024 20:37:50 UTC] Error: Class "Drupal\memcache\MemcacheSettings" not found in /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 81 #0 /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\PhpArrayContainer->createService() #1...