Drupal’s migration initiative has a slew of tools to fetch and process data. This includes the ability to map content types between major versions of the application. These tools are currently in beta and are overkill for my project. Instead, this gist include part of a ‘brewery_import’ module that created data in a new Drupal 8 site from an external JSON feed.
- Highlights the importance of interfaces. New features in PHP7 allow developers to type-hint the parameters and return values of each method – guaranteeing appropriate methods are available to complete these import tasks.
 - Designed with testing in mind. Most methods are short, contain a single purpose, and separate from database and external influencers. Dependency injection allows services to be loaded as needed at runtime.
 - View the complete repository on Github at