code: public function getBreadcrumb(GetBreadcrumbEvent $event)
      {
          $environment = $event->getEnvironment();
          if (!$this->wantToHandle($event)) {
              return;
          }
  
          $elements = $this->storeFactory->createStore();
          $this->getBreadcrumbElements($environment, $elements);
          $event->setElements($elements->getElements());
          $event->stopPropagation();
      }
docs: Event handler.
  
  @param GetBreadcrumbEvent $event The event.
  
  @return void