13-15 March 2020

City, University London

Syncing data from an API into Drupal 8 entities

Start time
End time
Location / Room
City Uni London, Room ELG11

Clients often have multiple sources of content. Entering the content twice, or copying content from external sources is time consuming, error prone, and difficult to manage. Loading data via an API is important (and a skill this workshop will teach), but there are cases where also syncing that data and storing it within Drupal can be very useful. For instance, maybe you want that content available in your search, or maybe that content is User Accounts from a customer relationship management system, or maybe the performance of the API is just not good enough.

This workshop will take you through:

  1. Using Drupal to do make connecting to an external API painless
  2. Having Drupal do the heavy lifting syncing large amounts of data down to your site
  3. Converting that data into Drupal Entities so you can use it like any other Drupal contents in your views, templates, and other purposes
Participants will learn after completion

By the end of this workshop you will have written your own code to:

  1. Create a Service to connect to an API (sample APIs to consume will be provided)
  2. Create a form in your admin area to trigger a batch process using the Batch API to use the Service to sync the data down to your site
  3. Create new Entities and updating existing Entities in code

If we have time we will also cover:

  1. Using the same Service via the Migrate API to have Drush sync new items (or sync and update all items) at set intervals
  • A decent working knowledge of Drupal and PHP.
  • A laptop with a local copy of Drupal 8 ready to go.
  • Recommended: PhpStorm or Visual Studio Code for editing code.





Acquia - Experience digital freedom
Agiledrop - Trusted Drupal teammates

Weekend Keynote Speakers

Kevin Bridges


Michel van Velde

One Shoe, CEO

Nick Veenhof

Dropsolid, CTO

CxO Keynote Speakers

Kevin Bridges


Michel van Velde

One Shoe, CEO

Greg Harvey

Code Enigma, Director

Rachel Lawson

Drupal Association, Community Liaison

Carrie Lacina

Drupal Association, Fund Development Director

Jeffrey A. “jam” McGuire

Open Strategy Partners, Partner

Tracy Evans

Open Strategy Partners, Partner

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from drupal.org to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association

Hosting provided by