mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 20:29:15 +02:00
ENHANCEMENT Enable request handlers to be extended
This commit is contained in:
parent
e6ff8bc681
commit
26402f3bb5
@ -560,9 +560,11 @@ class RequestHandler extends ViewableData
|
||||
// Check configured url_segment
|
||||
$url = $this->config()->get('url_segment');
|
||||
if ($url) {
|
||||
$link = Controller::join_links($url, $action, '/');
|
||||
|
||||
// Give extensions the chance to modify by reference
|
||||
$this->extend('updateLink', $link, $action);
|
||||
return Controller::join_links($url, $action, '/');
|
||||
return $link;
|
||||
}
|
||||
|
||||
// no link defined by default
|
||||
|
@ -48,7 +48,6 @@ trait Extensible
|
||||
*/
|
||||
private static $unextendable_classes = array(
|
||||
ViewableData::class,
|
||||
RequestHandler::class,
|
||||
);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user