mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +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
|
// Check configured url_segment
|
||||||
$url = $this->config()->get('url_segment');
|
$url = $this->config()->get('url_segment');
|
||||||
if ($url) {
|
if ($url) {
|
||||||
|
$link = Controller::join_links($url, $action, '/');
|
||||||
|
|
||||||
// Give extensions the chance to modify by reference
|
// Give extensions the chance to modify by reference
|
||||||
$this->extend('updateLink', $link, $action);
|
$this->extend('updateLink', $link, $action);
|
||||||
return Controller::join_links($url, $action, '/');
|
return $link;
|
||||||
}
|
}
|
||||||
|
|
||||||
// no link defined by default
|
// no link defined by default
|
||||||
|
@ -48,7 +48,6 @@ trait Extensible
|
|||||||
*/
|
*/
|
||||||
private static $unextendable_classes = array(
|
private static $unextendable_classes = array(
|
||||||
ViewableData::class,
|
ViewableData::class,
|
||||||
RequestHandler::class,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user