Upcasting Custom Route Parameters in Drupal
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.
Topic archive
Every article filed under symfony, grouped by year.
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.
On a recent project that was built on Drupal 8, we had a requirement to integrate with three different search platforms.
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.
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.
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?