class VariableMobileRealmController in Variable Extra 7
Controller for Language realms.
Hierarchy
- class \VariableMobileRealmController extends \VariableRealmDefaultController
Expanded class hierarchy of VariableMobileRealmController
1 string reference to 'VariableMobileRealmController'
- variable_mobile_variable_realm_info in variable_mobile/
variable_mobile.module - Implements hook_variable_realm_info().
File
- variable_mobile/
variable_mobile.class.inc, line 10 - Variable Realm controller.
View source
class VariableMobileRealmController extends VariableRealmDefaultController {
/**
* Implementation of VariableRealmControllerInterface::getDefaultKey().
*/
public function getDefaultKey() {
return NULL;
}
/**
* Implementation of VariableRealmControllerInterface::getRequestKey().
*/
public function getRequestKey() {
return variable_mobile_current_realm();
}
/**
* Implementation of VariableRealmControllerInterface::getAllKeys().
*/
public function getAllKeys() {
return array(
'mobile' => t('Mobile device'),
'standard' => t('Standard device'),
);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VariableMobileRealmController:: |
public | function | Implementation of VariableRealmControllerInterface::getAllKeys(). | |
VariableMobileRealmController:: |
public | function | Implementation of VariableRealmControllerInterface::getDefaultKey(). | |
VariableMobileRealmController:: |
public | function | Implementation of VariableRealmControllerInterface::getRequestKey(). |