January 2020

Work with the new Drupal Media Entities.

The new Media features in 8.8 core are great. I've been working with a commercial template that used the old school media field and trying to use Media Entities instead since they have so many potential advantages, including adding fields like keywords, captions, copyright, etc.

Getting added fields to show in Twig templates is...uh...exciting. The module Bamboo Twig can be really helpful. Here's some stuff I figured out when placed in a file node--myContentType.html.twig

Tags