This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// REMOVE ME: Place in /web/modules/custom/mymodule/src/EventSubscriber/EmbedSubscriber.php | |
namespace Drupal\mymodule_embed\EventSubscriber; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
use Symfony\Component\HttpKernel\KernelEvents; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/drupal-gutenberg-translations.js b/js/drupal-gutenberg-translations.js | |
index c00f2f2..2ca1e3b 100644 | |
--- a/js/drupal-gutenberg-translations.js | |
+++ b/js/drupal-gutenberg-translations.js | |
@@ -2,1212 +2,1750 @@ | |
File generated by drupal-gutenberg-translations tool. | |
*/ | |
/* | |
- Drupal.t('Field'); | |
- Drupal.t('Field block.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
drush php-eval "drupal_set_installed_schema_version('your_module', 8001);" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/colordialog.info.yml b/colordialog.info.yml | |
index 090bf73..ccac3a3 100644 | |
--- a/colordialog.info.yml | |
+++ b/colordialog.info.yml | |
@@ -2,7 +2,7 @@ name: CKEditor Color Dialog | |
type: module | |
description: "Adds in the Color Dialog plugin for CKEditor." | |
package: CKEditor | |
-core: 8.x | |
+core_version_requirement: ^8 || ^9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/plugins/fixed_toolbar/plugin.js b/js/plugins/fixed_toolbar/plugin.js | |
index 4a0757c..fa51d2e 100644 | |
--- a/js/plugins/fixed_toolbar/plugin.js | |
+++ b/js/plugins/fixed_toolbar/plugin.js | |
@@ -8,6 +8,16 @@ CKEDITOR.plugins.add('fixed_toolbar', { | |
toolBar.style.position = 'sticky'; | |
// We use the same offset as Drupal uses for body to make up for Admin Toolbar. | |
toolBar.style.top = document.body.style.paddingTop; | |
+ | |
+ // Loop through the parents and see if we're in a modal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/google_analytics_counter.info.yml b/google_analytics_counter.info.yml | |
index 661cd70..f032046 100644 | |
--- a/google_analytics_counter.info.yml | |
+++ b/google_analytics_counter.info.yml | |
@@ -4,6 +4,8 @@ description: 'Lightweight page view counter drawing on data collected by Google | |
# core: 8.x | |
package: Statistics | |
configure: google_analytics_counter.admin_settings_form | |
+dependencies: | |
+ - drupal:node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Controller/GaNodeReportsCharts.php b/src/Controller/GaNodeReportsCharts.php | |
index 4d377f6..20bd319 100644 | |
--- a/src/Controller/GaNodeReportsCharts.php | |
+++ b/src/Controller/GaNodeReportsCharts.php | |
@@ -113,6 +113,14 @@ class GaNodeReportsCharts extends ControllerBase implements ContainerInjectionIn | |
// Chart details building. | |
$chart_date = $chart_page = $chart_session = []; | |
+ // Sum up pageviews and sessions. | |
+ // We process the results twice, to reduce the chance of patch conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
drush eval "module_load_install('mymodule'); mymodule_update_8010();" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_theme_preprocess_block(&$variables) { | |
// Make block_content contextual links available in Layout Builder blocks. | |
if(!empty($variables['content']['#block_content'])){ | |
if (empty($variables['title_suffix']) && isset($variables['elements']['content']['#contextual_links'])) { | |
$variables['title_suffix']['contextual_links'] = [ | |
'#type' => 'contextual_links_placeholder', | |
'#id' => _contextual_links_to_id($variables['elements']['content']['#contextual_links']), | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ds_get_field_value($key, $field, $entity, $entity_type, $bundle, $view_mode, $build = array()) { | |
// ………………… | |
// Track the display suite fields, that are in use. | |
$ds_fields = variable_get('my_active_ds_fields', array()); | |
$render_key = $entity_type . ' | ' . $bundle . ' | ' . $view_mode; | |
if (isset($ds_fields[$key])) { | |
if (!in_array($render_key, $ds_fields[$key]['used_in'])) { | |
$ds_fields[$key]['used_in'][] = $render_key; | |
} |