mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7449 from creative-commoners/pulls/4.0-updatebreadcrumbs
Add updateBreadcrumbs hook to GridFieldDetailForm
This commit is contained in:
commit
c3f321459b
@ -587,6 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
|
||||
/** @var ArrayList $items */
|
||||
$items = $this->popupController->Breadcrumbs($unlinked);
|
||||
|
||||
if ($this->record && $this->record->ID) {
|
||||
$title = ($this->record->Title) ? $this->record->Title : "#{$this->record->ID}";
|
||||
$items->push(new ArrayData(array(
|
||||
@ -600,6 +601,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
)));
|
||||
}
|
||||
|
||||
$this->extend('updateBreadcrumbs', $items);
|
||||
return $items;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user