protected function LanguageHierarchyI18nVariableLanguageRealm::getParentRealmStore in Language Hierarchy 7
Get a reference to the parent realm's store.
1 call to LanguageHierarchyI18nVariableLanguageRealm::getParentRealmStore()
- LanguageHierarchyI18nVariableLanguageRealm::createStore in modules/
i18n_variable_hierarchy/ includes/ i18n_variable_hierarchy.class.inc - Create the store for this realm, passing in the parent store.
File
- modules/
i18n_variable_hierarchy/ includes/ i18n_variable_hierarchy.class.inc, line 15 - Variable Realm controller.
Class
- LanguageHierarchyI18nVariableLanguageRealm
- Controller for Language realms, with support for language heirarchy.
Code
protected function getParentRealmStore($realm_key) {
// If we have a parent language, then get those variables and merge them in.
if ($parent_key = language_hierarchy_get_parent($realm_key)) {
if ($parent_controller = $this
->getParentKeyVariableRealmController($parent_key->language)) {
return $parent_controller
->getStore($parent_key->language);
}
}
else {
return NULL;
}
}