StaticValueMapper implements StaticMappableAspectInterface, SiteLanguageAwareInterface, Countable uses SiteLanguageAwareTrait
Mapper for having a static list of mapping them to value properties.
routeEnhancers: MyBlogExample: type: Extbase extension: BlogExample plugin: Pi1 routes: - { routePath: '/archive/{year}', _controller: 'Blog::archive' } defaultController: 'Blog::list' aspects: year: type: StaticValueMapper map: 2k17: '2017' 2k18: '2018' next: '2019' # (optional) localeMap: - locale: 'en_US.|en_GB.' map: twenty-seventeen: '2017' twenty-eighteen: '2018' next: '2019' - locale: 'fr_FR' map: vingt-dix-sept: '2017' vingt-dix-huit: '2018' prochain: '2019'
Table of Contents
Interfaces
- StaticMappableAspectInterface
- Used for anything that has a fixed list of values mapped against route arguments.
- SiteLanguageAwareInterface
- Interface for SiteLanguageAware features of TYPO3
- Countable
Properties
- $localeMap : array<string|int, mixed>
- $map : array<string|int, mixed>
- $settings : array<string|int, mixed>
- $siteLanguage : SiteLanguage
Methods
- __construct() : mixed
- count() : int
- {@inheritdoc}
- generate() : string|null
- getSiteLanguage() : SiteLanguage
- resolve() : string|null
- setSiteLanguage() : mixed
- retrieveLocaleMap() : array<string|int, mixed>|null
- Fetches the map of with the matching locale.
Properties
$localeMap
protected
array<string|int, mixed>
$localeMap
$map
protected
array<string|int, mixed>
$map
$settings
protected
array<string|int, mixed>
$settings
$siteLanguage
protected
SiteLanguage
$siteLanguage
Methods
__construct()
public
__construct(array<string|int, mixed> $settings) : mixed
Parameters
- $settings : array<string|int, mixed>
Tags
count()
{@inheritdoc}
public
count() : int
Return values
intgenerate()
public
generate(string $value) : string|null
Parameters
- $value : string
Return values
string|nullgetSiteLanguage()
public
getSiteLanguage() : SiteLanguage
Return values
SiteLanguageresolve()
public
resolve(string $value) : string|null
Parameters
- $value : string
Return values
string|nullsetSiteLanguage()
public
setSiteLanguage(SiteLanguage $siteLanguage) : mixed
Parameters
- $siteLanguage : SiteLanguage
retrieveLocaleMap()
Fetches the map of with the matching locale.
protected
retrieveLocaleMap() : array<string|int, mixed>|null