content_translation_field_info_alter(&$info)
Implements hook_field_info_alter().
Content translation extends the @FieldType annotation with following key:
Drupal\image\Plugin\Field\FieldType\ImageItem
function content_translation_field_info_alter(&$info) { foreach ($info as $key => $settings) { // Supply the column_groups key if it's not there. if (empty($settings['column_groups'])) { $info[$key]['column_groups'] = array(); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!content_translation!content_translation.module/function/content_translation_field_info_alter/8.1.x