svg_image_responsive.module in Svg Image 1.x
Same filename and directory in other branches
Contains hooks for the svg_image_responsive module.
File
modules/svg_image_responsive/svg_image_responsive.moduleView source
<?php
/**
* @file
* Contains hooks for the svg_image_responsive module.
*/
use Drupal\svg_image\Plugin\Field\FieldFormatter\SvgImageFormatter;
use Drupal\svg_image_responsive\Plugin\Field\FieldFormatter\SvgResponsiveImageFormatter;
/**
* Implements hook_field_formatter_info_alter().
*/
function svg_image_responsive_field_formatter_info_alter(array &$info) {
$info['image']['class'] = SvgImageFormatter::class;
$info['responsive_image']['class'] = SvgResponsiveImageFormatter::class;
}
Functions
Name | Description |
---|---|
svg_image_responsive_field_formatter_info_alter | Implements hook_field_formatter_info_alter(). |