Move navigator casting to static

This commit is contained in:
Daniel Hensby 2018-05-01 12:59:53 +01:00
parent 593640975c
commit 80a8e9033e
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -58,6 +58,10 @@ class ContentController extends Controller
'LoginForm'
);
private static $casting = array(
'SilverStripeNavigator' => 'HTMLFragment',
);
/**
* The ContentController will take the URLSegment parameter from the URL and use that to look
* up a SiteTree record.