How to Get Video URL for Video Embed Field - Twig - Drupal 8. The Video Embed Field module is a great tool which can be coupled with any Drupal 8 installation to provide easy and seamless integration of embedded videos from a multitude of hosted service providers. One common challenge is fetching the raw URL of the video, as specified in the Video Embed Field on your entity type (node, block, etc). Sep 15, 2016 · As you can see, Twig is really powerful in Drupal 8. No preprocess functions were used here which really helps streamline theming. We stayed within one Twig template for all of the functions and code above. A lot of possibilities here to give content creators more control over layout, colors, custom classes, and more. Resources
Drupal 8 has one more powerful tool called Twig, a template engine which replaces Drupal's default PHPTemplate engine. Being a part of the Symfony2 framework, Twig provides a greater separation between logic and display (PHP code is no longer embedded in templates).