Im using this for my layout management, I call it as a component inside views:

/**
* Layout Manager
* @see app\components\LayoutManager.php
* Handles need data for main.php, navbar, breadcrumbs, etc.
*/
$layout = \Yii::$app->layoutManager;

to grab and load content thats needed for main.php and other view files. I would like to be able to load breadcrumbs from here and then
into the view aswell.

<?php
/**
* Breadcrumbs
* @url https://www.yiiframework.com/doc/api/2.0/yii-widgets-breadcrumbs
* @url https://www.yiiframework.com/doc/guide/2.0/en/structure-views#sharing-data-among-views
*
* Note: Added only for admins and helpers.
* Example:
*	<?= Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],]) ?>
*
*	if (!empty($this->params['breadcrumbs'])) :
*		<?= Breadcrumbs::widget(['links' => $this->params['breadcrumbs']]); ?>
*	}
*/
if (!empty($layout->getBreadcrumbs()) && ($layout->isAdmin || $layout->isHelper)) :

?>
<div class="container my-2">
<nav aria-label="breadcrumb">

<?= Breadcrumbs::widget([
	//'itemTemplate' => "<li><i>{link}</i></li>\n",// template for all links
	'homeLink' => ['label' => \Yii::t('app', 'Home'), 'url' => $layout->homeUrl],
	'links' => $layout->getBreadcrumbs(),
]); ?>

</nav>
</div><!-- .container .my-2 -->
<?php endif; ?>

<?php
declare(strict_types=1);

namespace app\components;

use Yii;
use yii\base\Component;
use yii\web\IdentityInterface;

use app\helpers\AppHelper;
use app\helpers\ParamHelper;
use app\helpers\RoleHelper;

class LayoutManager extends Component
{
	// Site Params
	public string $siteAddress = '';
	public string $sitePhoneNumber = '';
	public string $siteHoursOf = '';
	public string $siteAboutUs = '';
	public string $siteEmailSupport = '';
	public string $siteTwitter = '';
	public string $siteFacebook = '';
	public string $siteInstagram = '';
	
	// App Navigation
	public ?string $appName = null;
	public string $homeUrl = '';
	public string $isHere = '';
	public string $getHere = '';
	public array $menuItems = [];
	public array $breadcrumbs = [];
	
	// Roles and permissions
	public bool $isGuest = false;
	public IdentityInterface|null $isUser = null;
	public bool $isHelper = false;
	public bool $isAdmin = false;
	
	/**
	* Initializes the Component.
	* This method runs after the component is configured and serves
	* as a place to perform any one-time setup required for the logger.
	*/
	public function init()//: __construct()
	{
		/**
		* The default implementation does two things:
		* 	Initializes the object with the given configuration $config.
		*	Call init().
		*
		* If this method is overridden in a child class, it is recommended that the last parameter of the constructor 
		* is a configuration array, like $config here. call the parent implementation at the end of the constructor.
		*/
		parent::init();
		
		// custom code here...
		
		// Gather footer data with ParamHelper()
		$this->siteAboutUs = ParamHelper::get('site.aboutUs');
		$this->siteAddress = ParamHelper::get('site.address');
		$this->sitePhoneNumber = ParamHelper::get('site.phone');
		$this->siteHoursOf = \Yii::t('app', ParamHelper::get('site.hoursOf'));
		$this->siteEmailSupport = ParamHelper::get('email.support');
		$this->siteTwitter = ParamHelper::get('site.twitter');
		$this->siteFacebook = ParamHelper::get('site.facebook');
		$this->siteInstagram = ParamHelper::get('site.instagram');
		
		// Set URL's for navbar and links
		$this->appName = AppHelper::name();
		$this->homeUrl = AppHelper::home();
		$this->isHere = AppHelper::isHere();
		$this->getHere = AppHelper::getHere();
		
		// Roles and permissions - Moved to init for better initialization
		$this->isGuest = RoleHelper::isGuest();
		$this->isUser = RoleHelper::userIdentity();
		$this->isHelper = RoleHelper::isHelper();
		$this->isAdmin = RoleHelper::isAdmin();
		
		$this->setNavbarMenu();
	}
	
	protected function setNavbarMenu(): void
	{
		$userName = (string)RoleHelper::userName();
		
		/**
		* TODO
		* Need to figure out how to handle the $navCartQuantity
		*
		$sessionUser = new SessionUser();
		$sessionCart = new SessionCart($sessionUser);
		if ($isGuest)
		{
			$navCartQuantity = SessionCart::getNavCartQuantity($sessionCart);
		}
		elseif ($isUser) {
			$navCartQuantity = Cart::getNavCartQuantity();
		}*/
		$cartQuantity = 0;
		
		$this->menuItems = [
			['label' => \Yii::t('app', 'home'), 'url' => ['/site/index']],
		];
		
		if ($this->isGuest)
		{
			$this->menuItems[] = ['label' => \Yii::t('app', 'membership'), 'url' => ['/site/membership']];
			$this->menuItems[] = ['label' => \Yii::t('app', 'login'), 'url' => ['/site/login']];
		}
		if ($this->isUser)
		{
			$this->menuItems[] = [
				'label' => 'account',
				'items' => [
					[
						'label' => \Yii::t('app', 'orders'),
						'url' => ['/order/client'],
					],[
						'label' => \Yii::t('app', 'settings'),
						'url' => ['/account/index'],
					],[
						'label' => \Yii::t('app', 'logout').' (' . $userName . ')',
						'url' => ['/site/logout'],
						'linkOptions' => ['data-method' => 'post']
					],
				],
			];
			
			//if ($this->isAdmin) {}
			//elseif ($this->isHelper) {}
		}
	}
	
	/**
	* Adds Breadcrumbs
	* @param array $breadcrumbs
	*
	* How to use:
	*
	*	['label' => 'Label', 'url' => ['route' => 'controller/action']]
	*/
	public function setBreadcrumbs(array $breadcrumbs): void
	{
		$this->breadcrumbs = $breadcrumbs;
	}
	
	public function getBreadcrumbs(): array
	{
		return $this->breadcrumbs;
	}
}