I've created a breadcumb using this and I've created one. But I would like to create breadcrumb for each page. I've 3 forms, above the form I need to set the progress of the form in the form of breadcrumb,
$breadcrumb = l('hi', '/hi'); drupal_set_breadcrumb($breadcrumb);
In drupal 8 I've tried to use
$b = new Breadcrumb(); $breadcrumb = Link::createFromRoute(t('Home'), '<front>'); return $b->setLinks($new_breadcrumbs);
But this is not working... how we can show that and where am I doing wrong?