Recipes

Changing Breadcrumbs from Resource

You can change the breadcrumbs of a page directly from the resource.

class MoonShineUserResource extends ModelResource
{
//...
 
protected function onLoad(): void
{
parent::onLoad();
 
$this->getFormPage()->breadcrumbs([
'/custom' => 'Custom',
'#' => $this->getTitle(),
]);
}
 
//...
}