Loading content_browser.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading content_browser.install +1 −1 Original line number Diff line number Diff line Loading @@ -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']; Loading content_browser.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ view: dependencies: - core/jquery - core/drupal - core/once - content_browser/masonry masonry: Loading js/content_browser.view.js +1 −1 Original line number Diff line number Diff line Loading @@ -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')) { Loading tests/src/Functional/InstallTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class InstallTest extends BrowserTestBase { /** * {@inheritdoc} */ public static $modules = ['content_browser']; protected static $modules = ['content_browser']; /** * {@inheritdoc} Loading Loading
content_browser.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
content_browser.install +1 −1 Original line number Diff line number Diff line Loading @@ -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']; Loading
content_browser.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ view: dependencies: - core/jquery - core/drupal - core/once - content_browser/masonry masonry: Loading
js/content_browser.view.js +1 −1 Original line number Diff line number Diff line Loading @@ -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')) { Loading
tests/src/Functional/InstallTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class InstallTest extends BrowserTestBase { /** * {@inheritdoc} */ public static $modules = ['content_browser']; protected static $modules = ['content_browser']; /** * {@inheritdoc} Loading