‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper Class Reference
Inheritance diagram for TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper:
TYPO3\CMS\Core\Routing\Aspect\StaticMappableAspectInterface TYPO3\CMS\Core\Site\SiteLanguageAwareInterface TYPO3\CMS\Core\Routing\Aspect\UnresolvedValueInterface TYPO3\CMS\Core\Routing\Aspect\MappableAspectInterface TYPO3\CMS\Core\Routing\Aspect\AspectInterface

Public Member Functions

 __construct (array $settings)
 
 count ()
 
 generate (string $value)
 
 resolve (string $value)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Site\SiteLanguageAwareInterface
 setSiteLanguage (SiteLanguage $siteLanguage)
 
 getSiteLanguage ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Routing\Aspect\UnresolvedValueInterface
 hasFallbackValue ()
 
 getFallbackValue ()
 

Protected Member Functions

 retrieveLocaleMap ()
 

Protected Attributes

array $settings
 
array $map
 
array $localeMap
 

Detailed Description

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'

Definition at line 54 of file StaticValueMapper.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::__construct ( array  $settings)

Member Function Documentation

◆ count()

TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::count ( )

◆ generate()

TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::generate ( string  $value)

◆ resolve()

TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::resolve ( string  $value)

◆ retrieveLocaleMap()

TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::retrieveLocaleMap ( )
protected

Member Data Documentation

◆ $localeMap

array TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::$localeMap
protected

◆ $map

◆ $settings

array TYPO3\CMS\Core\Routing\Aspect\StaticValueMapper::$settings
protected