Commit 1d9a18fe authored by Samuel Mortenson's avatar Samuel Mortenson Committed by Sam Mortenson
Browse files

Issue #3286725 by Project Update Bot, samuel.mortenson: Automated Drupal 10 compatibility fixes

parent 33d198c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: Content Browser
description: 'Provides a default Entity Browser for default Content Entity types, using Masonry.'
type: module
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
dependencies:
  - entity_browser:entity_browser
  - entity_embed:entity_embed
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ function content_browser_install() {
  if (!\Drupal::isConfigSyncing()) {
    $data = file_get_contents(dirname(__FILE__) . '/content_browser_icon.png');
    /** @var \Drupal\file\FileInterface $file */
    $file = file_save_data($data, 'public://content_browser_icon.png', FileSystemInterface::EXISTS_REPLACE);
    $file = \Drupal::service('file.repository')->writeData($data, 'public://content_browser_icon.png', FileSystemInterface::EXISTS_REPLACE);
    if ($file) {
      // Set file uuid same as default config.
      $uuid = Yaml::decode(file_get_contents(dirname(__FILE__) . '/config/install/embed.button.content_browser.yml'))['icon_uuid'];
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ view:
  dependencies:
    - core/jquery
    - core/drupal
    - core/once
    - content_browser/masonry

masonry:
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
    attach: function (context) {
      $('body').addClass('content-browser-page').fadeIn();

      $('.views-row').once('bind-click-event').click(function () {
      $(once('bind-click-event', '.views-row')).click(function () {
        var input = $(this).find('.views-field-entity-browser-select input');
        input.prop('checked', !input.prop('checked'));
        if (input.prop('checked')) {
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ class InstallTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  public static $modules = ['content_browser'];
  protected static $modules = ['content_browser'];

  /**
   * {@inheritdoc}