Loading modules/svg_image_field_media_bundle/svg_image_field_media_bundle.info.yml +1 −2 Original line number Diff line number Diff line name: 'SVG Image Field - Media Bundle' type: module description: 'Creates a media bundle to use SVG Image Field with the Media capabilities in core. NOTE: if you are planning to use this with the Media Library in core, it is recommended to install that module before this one. Will also install Acquia Site Studio Components if that is installed.' core: 8.x core_version_requirement: '^8 || ^9' core_version_requirement: ^9.3 || ^10 package: 'Field types' dependencies: - drupal:media Loading src/Plugin/Field/FieldFormatter/SvgImageFieldFormatter.php +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) { // context to ensure different file URLs are generated for different // sites in a multisite setup, including HTTP and HTTPS versions of the // same site. Fix in https://www.drupal.org/node/2646744. $url = Url::fromUri(file_create_url($uri)); $url = \Drupal::service('file_url_generator')->generate($uri); $cache_contexts[] = 'url.site'; } Loading svg_image_field.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,7 @@ name: SVG image field type: module description: 'Provides svg image field' package: Field types core: '8.x' core_version_requirement: ^8 || ^9 core_version_requirement: ^9.3 || ^10 dependencies: - drupal:image Loading tests/src/Unit/FileValidationTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class FileValidationTest extends FieldKernelTestBase { /** * {@inheritdoc} */ public function setUp() { public function setUp(): void { $this->testDataDirPath = dirname(__FILE__) . '/test_data'; parent::setUp(); $this->installEntitySchema('file'); Loading Loading
modules/svg_image_field_media_bundle/svg_image_field_media_bundle.info.yml +1 −2 Original line number Diff line number Diff line name: 'SVG Image Field - Media Bundle' type: module description: 'Creates a media bundle to use SVG Image Field with the Media capabilities in core. NOTE: if you are planning to use this with the Media Library in core, it is recommended to install that module before this one. Will also install Acquia Site Studio Components if that is installed.' core: 8.x core_version_requirement: '^8 || ^9' core_version_requirement: ^9.3 || ^10 package: 'Field types' dependencies: - drupal:media Loading
src/Plugin/Field/FieldFormatter/SvgImageFieldFormatter.php +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) { // context to ensure different file URLs are generated for different // sites in a multisite setup, including HTTP and HTTPS versions of the // same site. Fix in https://www.drupal.org/node/2646744. $url = Url::fromUri(file_create_url($uri)); $url = \Drupal::service('file_url_generator')->generate($uri); $cache_contexts[] = 'url.site'; } Loading
svg_image_field.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,7 @@ name: SVG image field type: module description: 'Provides svg image field' package: Field types core: '8.x' core_version_requirement: ^8 || ^9 core_version_requirement: ^9.3 || ^10 dependencies: - drupal:image Loading
tests/src/Unit/FileValidationTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class FileValidationTest extends FieldKernelTestBase { /** * {@inheritdoc} */ public function setUp() { public function setUp(): void { $this->testDataDirPath = dirname(__FILE__) . '/test_data'; parent::setUp(); $this->installEntitySchema('file'); Loading