TcaSiteLanguage
class \
- Extends
- AbstractDatabaseRecordProvider
- Implements
- FormDataProviderInterface
Resolve and prepare site language data
Internal
This FormDataProvider is only used in the site configuration module and is not public API
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Methods
- __construct() : mixed
- addData() : array
- Add form data to result array
- injectConnectionPool() : void
- addInlineFirstPid() : array
- addInlineRelatedConfig() : array
- addUniquePossibleRecords() : array
- compileChild() : array
- compileDefaultSiteLanguageChild() : array
- getDatabaseRow() : array
- Retrieve the requested row from the database
- getDefaultDatabaseRow() : array
- Create the database row for the default site language based on an already existing default language from another site.
- getRecordFromDatabase() : array
- Fetch a record from database. Deleted records will NOT be fetched.
- initializeAppearance() : array
- initializeMinMaxItems() : array
- resolveSiteLanguageChildren() : array
Methods
__construct()
public
__construct(SiteFinder $siteFinder, InlineStackProcessor $inlineStackProcessor, EnvPlaceholderProcessor $envPlaceholderProcessor, SiteConfiguration $siteConfiguration) : mixed
Parameters
- $siteFinder : SiteFinder
- $inlineStackProcessor : InlineStackProcessor
- $envPlaceholderProcessor : EnvPlaceholderProcessor
- $siteConfiguration : SiteConfiguration
addData()
Add form data to result array
public
addData(array $result) : array
Parameters
- $result : array
-
Initialized result array
Return values
array —Result filled with more data
injectConnectionPool()
public
injectConnectionPool(ConnectionPool $connectionPool) : void
Parameters
- $connectionPool : ConnectionPool
addInlineFirstPid()
protected
addInlineFirstPid(array $result) : array
Parameters
- $result : array
Return values
arrayaddInlineRelatedConfig()
protected
addInlineRelatedConfig(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arrayaddUniquePossibleRecords()
protected
addUniquePossibleRecords(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arraycompileChild()
protected
compileChild(array $result, string $parentFieldName, int $childUid) : array
Parameters
- $result : array
- $parentFieldName : string
- $childUid : int
Return values
arraycompileDefaultSiteLanguageChild()
protected
compileDefaultSiteLanguageChild(array $result, string $parentFieldName) : array
Parameters
- $result : array
- $parentFieldName : string
Return values
arraygetDatabaseRow()
Retrieve the requested row from the database
protected
getDatabaseRow(string $tableName, int $uid) : array
Parameters
- $tableName : string
- $uid : int
Return values
arraygetDefaultDatabaseRow()
Create the database row for the default site language based on an already existing default language from another site.
protected
getDefaultDatabaseRow() : array
Return values
arraygetRecordFromDatabase()
Fetch a record from database. Deleted records will NOT be fetched.
protected
getRecordFromDatabase(string $tableName, int $uid) : array
Method is similar to BackendUtility::getRecord, but is more picky about input and result.
Parameters
- $tableName : string
-
The table name to fetch record from
- $uid : int
-
Uid of record to fetch
Tags
Return values
array —Fetched record row
initializeAppearance()
protected
initializeAppearance(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arrayinitializeMinMaxItems()
protected
initializeMinMaxItems(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arrayresolveSiteLanguageChildren()
protected
resolveSiteLanguageChildren(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string