class RulesLinkI18nController in Rules Link 7
Same name and namespace in other branches
- 7.2 rules_link_i18n.module \RulesLinkI18nController
Customized i18n string integration controller.
Hierarchy
- class \EntityDefaultI18nStringController
- class \RulesLinkI18nController
Expanded class hierarchy of RulesLinkI18nController
1 string reference to 'RulesLinkI18nController'
- rules_link_i18n_entity_info_alter in ./
rules_link_i18n.module - Implements hook_entity_info_alter().
File
- ./
rules_link_i18n.module, line 21 - Rules link i18n integration module via entity API i18n support.
View source
class RulesLinkI18nController extends EntityDefaultI18nStringController {
/**
* Overriddes EntityDefaultI18nStringController::hook_object_info() to include a custom object wrapper.
*/
public function hook_object_info() {
$info = parent::hook_object_info();
$info['rules_link']['class'] = 'RulesLinkI18nStringObjectWrapper';
return $info;
}
/**
* Overrides EntityDefaultI18nStringController::translatableProperties() to define our custom ones.
*/
protected function translatableProperties() {
$properties = array();
$properties['text'] = t('Link text');
$properties['confirm_question'] = t('Confirm question');
$properties['confirm_description'] = t('Confirm description');
return $properties;
}
}