Commit 6159b74c authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Issue #3289901 by Project Update Bot, atul ghate, ameymudras, mandclu:...

Issue #3289901 by Project Update Bot, atul ghate, ameymudras, mandclu: Automated Drupal 10 compatibility fixes
parent 08760855
Loading
Loading
Loading
Loading
+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
+1 −1
Original line number Diff line number Diff line
@@ -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';
      }

+1 −2
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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');