Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In this tutorial, we will go through how to set breadcrumbs in your Drupal 8 module. In Drupal 7 we were using drupal_set_breadcrumb(). In Drupal 8 drupal_set_breadcrumb() is removed and breadcrumbs are managed using the Breadcrumb service. There are only a few steps to do this:
Declare your service
Define a class implementing BreadcrumbBuilderInterface
This tutorial assumes that you have a working Drupal 8 module.
There is a way to turn this into learning about regular expressions.
The module "video_embed_field" has the ability in the version for Drupal 8 to use Plugins to be able to add embedded video providers from unknown providers or a proprietary streaming.
Webform exposes a number of tokens for the submission "just made" so that details of this submission can be accessed. For example, you may rename a file that is being uploaded on a submission using another field, or fields, on the same submission for the filename.
The Video Embed Field module allows you to create fields that contain embed videos from YouTube and Vimeo and show their thumbnail previews simply by entering the video's URL.
It depends on the Field and the Field UI modules.
As with other fields, a Video Embed field can be added to any bundle. This means you can add a Video Embed field to a user, a content type (news, event) or custom block.