SilverCart\Extensions\CMS\Controllers\RootURLControllerExtension
Extension for SilverStripe RootURLController.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2021 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class RootURLControllerExtension
extends Extension
{
- // methods
- public static string get_homepage_link_without_locale()
- public static string get_link_without_locale()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- get_homepage_link_without_locale() — Returns the homepage link [@see RootURLController::get_homepage_link()] without the current locale prefix.
- get_link_without_locale() — Returns the given $link without the current locale prefix.