public function CurrentSearchItem::translate in Facet API 7
Same name and namespace in other branches
- 6.3 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::translate()
- 7.2 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::translate()
Helper function for translating strings.
Parameters
string $key: The array key of the item being translated as defined in the plugin's CurrentSearchItem::settingsForm() function.
string $string: The string being translated.
Return value
The translated string.
See also
3 calls to CurrentSearchItem::translate()
- CurrentSearchGroup::execute in contrib/
current_search/ plugins/ current_search/ item_group.inc - Implements CurrentSearchItem::execute().
- CurrentSearchItemActive::execute in contrib/
current_search/ plugins/ current_search/ item_active.inc - Implements CurrentSearchItem::execute().
- CurrentSearchItemText::execute in contrib/
current_search/ plugins/ current_search/ item_text.inc - Implements CurrentSearchItem::execute().
File
- contrib/
current_search/ plugins/ current_search/ item.inc, line 121 - Base current search item plugin class.
Class
- CurrentSearchItem
- Abstract class extended by current search item plugins.
Code
public function translate($key, $string) {
$name = 'current_search:' . $this->configName . ':' . $this->name . ':' . $key;
return facetapi_translate_string($name, $string);
}