New answers tagged

1

Create a new breadcrumb instance: $links = $breadcrumb->getLinks(); // change order of $links $cacheability = \Drupal\Core\Cache\CacheableMetadata::createFromObject($breadcrumb); $breadcrumb = new \Drupal\Core\Breadcrumb\Breadcrumb(); $breadcrumb->setLinks($links); $breadcrumb->addCacheableDependency($cacheability);


Top 50 recent answers are included