Submitted by gareth on Mon, 24/06/2024 - 10:46
To connect to the DDEV database from within PHPStorm, the first step is to define the database container port. This is needed to ensure the connection credentials don't change between restarts of DDEV.
Submitted by gareth on Fri, 21/06/2024 - 10:27
PHP Authentication shield (https://www.drupal.org/project/shield) is great for blocking access to dev and stage sites, so I thought I'd document how I have it setup.
I usually have it installed and enabled on the Dev and Stage environments by default, it can be disabled or uninstalled if needed, but i set up my config split to ensure it is install and enabled (for dev and stage) but completely uninstalled on Prod after a deployment thanks to drush config:import running automatically as a part of the deployment process.
Submitted by gareth on Fri, 24/05/2024 - 10:19
I was recently asked to change a header to ensure that requests always use https, this can be done by ensuring the webpage has the header "Upgrade-Insecure-Requests” and that should be set to true. This can be achieved using SecKit, but I needed a way to check the initial setting and then also the change.
To view either the request or response HTTP headers in Google Chrome, I can do the following:
Submitted by gareth on Thu, 29/06/2023 - 16:20
Submitted by gareth on Sat, 27/05/2023 - 17:54
As I move more sites from D7 to D9 and D10 I have been playing more and more with some drush commands to move the DBs and files around I thought I would capture some here to ensure they don't get lost.
To ensure only the necessary files are copied without any extraneous ones I found this in the drush manual (https://www.drush.org/12.x/site-aliases/):
Submitted by gareth on Thu, 09/03/2023 - 10:01
Second Reprinting of: Mroodles – Great Mistakes in Technical Leadership – reprint
Great Mistakes in Technical Leadership - 11 Jun 2006
http://www.mroodles.com/wordpress/hacking/great-mistakes-in-technical-le...
but that site is now gone. I found this text in Wayback machine and took the liberty of posting it here with some grammar fixes (American English to English).
Originally: Hacknot – Great Mistakes in Technical Leadership
Submitted by gareth on Sat, 01/10/2022 - 13:14
Having missed another drupalcon, I am eagerly awaiting the publishing of the videos that I missed online, to watch at my leisure.
In the meantime, I thought I would revisit and catch up with the videos I didn't get around to watching from drupalcon Portland 2022.
The schedule is here:
https://events.drupal.org/portland2022/schedule/2022-04-25
But the videos are available on the Drupal Association Youtube channel.
Submitted by gareth on Thu, 11/11/2021 - 14:08
There are occasions when a project is needed that isn’t yet ready for Drupal 8 or 9. Hopefully, it is only missing a couple of configuration options like the the new core_version_requirement key in *.info.yml, but sometimes it needs more work.
Submitted by gareth on Wed, 28/07/2021 - 14:55
Submitted by gareth on Tue, 10/09/2019 - 16:20
I did a little exploration into Event dispatchers and Event subscribers for Drupal 8 and found some helpful articles which I am saving here for future reference:
Pages