You are here

protected function EntityDefaultI18nStringController::translatableProperties in Entity API 7

Defines translatable properties used by self::hook_object_info().

1 call to EntityDefaultI18nStringController::translatableProperties()
EntityDefaultI18nStringController::hook_object_info in ./entity.i18n.inc
Implements hook_i18n_object_info() via entity_i18n_object_info().

File

./entity.i18n.inc, line 193
Internationalization (i18n) integration.

Class

EntityDefaultI18nStringController
Default controller handling i18n integration.

Code

protected function translatableProperties() {
  $list = array();
  foreach (entity_get_all_property_info($this->entityType) as $name => $info) {
    if (!empty($info['translatable']) && !empty($info['i18n string'])) {
      $list[$name] = array(
        'title' => $info['label'],
      );
    }
  }
  return $list;
}