protected function SearchApiSavedSearchesSettingsI18nStringObjectWrapper::build_properties in Search API Saved Searches 7
Get translatable properties
Overrides i18n_string_object_wrapper::build_properties
File
- search_api_saved_searches_i18n/
search_api_saved_searches_i18n.string_wrapper.inc, line 35 - Contains the SearchApiSavedSearchesSettingsI18nStringObjectWrapper class.
Class
- SearchApiSavedSearchesSettingsI18nStringObjectWrapper
- Custom i18n object wrapper.
Code
protected function build_properties() {
$strings = parent::build_properties();
$properties = array();
// Dynamically add interval options.
foreach ($this->object->options['interval_options'] as $key => $value) {
$properties['interval_options.' . $key] = array(
'title' => t('Interval option, @key', array(
'@key' => $key,
)),
'string' => $value,
);
}
$strings[$this
->get_textgroup()]['search_api_saved_searches_settings'][$this->object->delta] += $properties;
return $strings;
}