Shortly after publishing my last post about Erlang, I noticed a bug in the code which would not have happened if I wrote unit test(s) first. I did not do that simply because I just started learning, and didn’t want too many barriers up front to getting started (its hard to write tests when you...
I have done a lot of research this year on what I believe will be some of the next great generation of tools and languages. I strongly believe PHP is on a fantastic road with 7.x, but there is another language that has been on my radar for quite some time, Elixir. Elixir is based on Erlang and...
Most developers at some point or another will inevitably need to add custom code to a site. In Drupal, this could be anything from extending core functionality, altering forms, or creating entirely new functionality.
When using best practices and having knowledge of the API/framework...
On a recent project that was built on Drupal 8, we had a requirement to integrate with three different search platforms.
One of them was private access only, requiring a whitelisted IP to talk to it. On the front end, we designed and built the search form and result list logic as a...
Earlier today there was a ping in Slack for assistance. A coworker needed to update 140 XML files with a new element, and the element value will be populated from an existing element in the node.
For most people, they hear the number “140” and think wow, this will take a while. But the...
Ever get to the end of a project and have a panic moment when you realize that all the content entered contains links in the WYSIWYG that contain the full domain, and not just the relative path to content (ex. http://dev.mysite.com)?
Who will update this? What do we do? Before we busted...
Overriding a service in Drupal 8 is pretty easy. Within your sites directory, you will see a file called default.services.yml
. You can adjust these defaults by adding a services.yml
file in the sites directory. This is common when you want to enable twig debugging when...
Just wanted to drop a quick nod to a long awaited feature in PHP that other languages have enjoyed for a while now… type hints and return types.
On a current project, I had to implement my own user authentication service in Drupal 8. While writing my class, I added new methods that I...
In the last post, I touched on how you can define a service in your mymodule.services.yml
file and pass it parameters to configure the object when it is injected as a dependency into other classes.
Following on that, I ran into a scenario where I needed to define multiple...