Drupal 10 starter for new projects, attentions this is an opinionated starter.
https://selwynpolit.github.io/d9book/
- Check defaults modules
- ...
- Disable users registrations
- Default url paths for content: [node:content-type]/[node:title]
lando drush site:install --db-url=mysql://drupal10:drupal10@database/drupal10 -y
$ cd /var/www/example.org/public_html/web
$ chown -R johndoe:www-data .
$ find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
$ find . -type f -exec chmod u=rw,g=r,o= '{}' \;
Based on Drupal.org's guide Configuring Visual Studio Code
- PHP Sniffer & Beautifier: Combines both phpcs and phpcbf in one handy extension.
- PHP DocBlocker: Provides auto-complete for PHP docblocks.
- Empty Indent: Removes indent of empty lines on save.
- PHP Debug: Provides launch configuration support for XDebug. Requires XDebug.
# Enable Twig debug mode in Drupal 10
lando drush twig:debug on && \
lando drush state:set disable_rendered_output_cache_bins 1 --input-format=integer && \
lando drush cache:rebuild
# Disable Twig debug mode in Drupal 10
drush twig:debug off && \
drush state:set disable_rendered_output_cache_bins 0 --input-format=integer && \
drush cache:rebuild