drupal-code-generator
drupal-code-generator copied to clipboard
A code generator for Drupal.
While generating a content entity and creating a new module in the process there won't be a generated `*.info.yml` It seems to me this is because the command is extending...
Drupal 10 will require PHP 8.1 which means we can make use of all new PHP features available at this moment. However, Drupal coding standards weren't updated yet to reflect...
That applies to both Composer and PHAR installation. ## Reasons 1. It seems global installation is not widely used. Most people have DCG installed as a local Composer package and...
If I'm not mistaken we don't have this one yet: https://drupal.org/docs/drupal-apis/configuration-api/configuration-override-system#s-providing-overrides-from-modules. Just logging my need for it. I do not have time to make a pull request right now.
For now, entity bundle classes generated by DCG 2 are placed in the namespace Drupal\mymodule\Entity\Bundle: ```
…controllers. - Updates di.twig container macro. - Updates all templates that use this #macro. Closes #53.
### Problem/Motivation According to the [Drupal 8 Backward Compatibility Policy](https://www.drupal.org/core/d8-bc-policy#constructors), constructors for service objects are considered internal, which means they are subject to change on a minor release: > The...
This is helpful in classes with \Drupal\Core\DependencyInjection\ContainerInjectionInterface for example controllers.
I just read through https://weknowinc.com/blog/creating-custom-ajax-command-drupal-8 as I need a custom AJAX Command (AjaxResponse). I first looked into drush gen but couldn't find a command for that. drupal generate:ajax:command shows: >...