Thanks to Symfony, Drupal has an incredibly robust routing system. What once used to be a chore in Drupal versions prior to 8 is now a breeze. Creating routes is super simple and parameter upcasting is usually automatic for known entities, like nodes, users,...
symfony
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...
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...
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...
In my latest adventures in Drupal 8, I had to build out a multisite search with Solr.
While I will touch on that later, I wanted to call out something I learned today, which is how to inject dependencies to your Drupal class with non-native Drupal code.
What do I mean by that?...