SilverCart\Extensions\TractorCow\Fluent\Model\LocaleExtension
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2020 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class LocaleExtension
extends DataExtension
{
- // methods
- public void requireDefaultRecords()
- public string getLocalePrefix()
- public void publishSiteTree()
- public void publishPageWithChildren()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
public
- getLocalePrefix() — Get a short language segment of the locale code.
- publishPageWithChildren() — Publishs the already published pages for the locale of this object recursively.
- publishSiteTree() — Publishs the already published pages for the locale of this object starting at the root pages (without a parent).
- requireDefaultRecords() — Adds a default locale if not done yet.