Development

Consuming JSON APIs in Drupal 8

Nowadays everyone has an API and it's fairly common to want a website you're working on to fetch data from a 3rd party API. That's because pulling 3rd party data into your website can not only enriches your website's content, but doing so can prevent the need to duplicate commonly needed data.

API provided data could include displaying weather information, going through drupal.org projects, looking through census results, or even displaying Magic the Gathering card data. In fact, every WordPress site comes with an active JSON API out of the box.

There really is an API for almost anything. It's no surprise that you'll eventually want to consume some random API while developing a Drupal website. But enough of the sales pitch, let's get started consuming JSON APIs. Read more about Consuming JSON APIs in Drupal 8

Building the process, tools, and environment for rapid and predictable development will help speed your business initiative's time to market. Our team can help efficiently scale development efforts for the most complex technology stacks and large teams of contributors while keeping the budget in check and the release train moving! Read more about Development Operations (DevOps)

Field Notes: UI Patterns Module

UI Patterns Module illustration from project page

When it comes to Atomic Design systems in Drupal 8, there’s hardly a shortage of solutions to choose from. Pattern Lab and KSS Node are certainly among the most popular and the recently released Mannequin looks incredibly exciting. However, in all these aforementioned solutions, exposing that component data to Drupal has never been particularly straightforward.

Here at Hook 42, we’ve just finished developing a brand-new Drupal 8 site for a client that utilizes UI Patterns, Paragraphs, and Display Suite to allow content users to construct complex but consistent user interfaces. What follows is our “field notes” from implementing UI Patterns in a production site. Read more about Field Notes: UI Patterns Module

Hook 42's Sessions, BoFs, and Events at DrupalCon Baltimore

DrupalCon Baltimore flying raven logo

Charm City here we come! Hook 42 is on their way to DrupalCon Baltimore!

DrupalCon Baltimore will be here before we know it, and the Hook 42 team is thrilled to be presenting four sessions this year! Aimee, Kristen Pol, and Kristin Bradham (K2) are ready to share their knowledge on Drupal 8 theming and view modes, worst practices, and migrations (alongside our friend Ryan Weal). 

Along with our sessions, we are helping organize and host a couple of other events! We are excited to be helping plan this year’s Business Summit, as well as continuing our sponsorship of Women in Drupal!

  Read more about Hook 42's Sessions, BoFs, and Events at DrupalCon Baltimore

Stanford Drupal Camp 2017 - Ready, Git Set, Go!

Pale pink Drupal drop

I fully embraced the motto “go big or go home” when I started to think about my first solo community presentation for Stanford Drupal Camp 2017. I wanted to force myself to learn a subject well enough that I could explain it to others. I like a challenge, so I set my eyes on understanding the fundamentals of Git. My presentation slides can be found here: https://legaudinier.github.io/Ready-Git-Set-Go/#. Read more about Stanford Drupal Camp 2017 - Ready, Git Set, Go!

Node.js version control in Drupal themes

Node.js and blue Drupal logo

It is important that for any given project, each developer uses the same version of Node.js and related Javascript (JS) packages. In this article, we’ll discuss how to use “Node Version Manager” (NVM) to install multiple versions of Node.js, how to use “Automatic Version Switching for Node.js” (AVN) to automatically switch Node.js versions when changing to a project directory, and how to use “Node Package Manager” (NPM) to keep track of JS packages. Read more about Node.js version control in Drupal themes

Writing My First Drupal 8 Module

Blue Drupal 8 Logo

While it’s amazing how easy it is for an experienced Drupal 7 site builder to get around using the Drupal 8 UI, the same is not true for writing code for D8. As has been made clear for years now, Drupal 8 is very different inside. Many of the hooks we know and love have gone away, most procedural code has been replaced with interfaces, classes, and methods, and there are scads of YAML (Yet Another Markup Language, .yml file extension) files that wire everything together. How does a developer get her/his footing in this slippery new landscape? Read more about Writing My First Drupal 8 Module

Pages