function svg_image_field_formatter_info_alter in Svg Image 8
Same name and namespace in other branches
- 2.x svg_image.module \svg_image_field_formatter_info_alter()
- 1.x svg_image.module \svg_image_field_formatter_info_alter()
Implements hook_field_formatter_info_alter().
File
- ./
svg_image.module, line 23 - Contains main functions and hooks for svg_image module.
Code
function svg_image_field_formatter_info_alter(array &$info) {
$info['image']['class'] = SvgImageFormatter::class;
$info['image_url']['class'] = SvgImageUrlFormatter::class;
}