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
#!/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/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
<?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/.travis.yml b/.travis.yml | |
index 623d2f8..575bec6 100644 | |
--- a/.travis.yml | |
+++ b/.travis.yml | |
@@ -51,7 +51,7 @@ before_script: | |
# 24 October 2020 this bumped the version to Composer 2. Drupal Core 8.8 has | |
# plugins that only run with composer-plugin-api ^1.0 so revert to Composer 1. | |
- if [ "$DRUPAL_CORE" == "8.8.x" ]; then | |
- travis_retry composer self-update --1; | |
+ travis_retry composer self-update --1; |
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/scheduler.module b/scheduler.module | |
index 4e959da..98c1ee1 100644 | |
--- a/scheduler.module | |
+++ b/scheduler.module | |
@@ -287,9 +287,12 @@ function _scheduler_entity_type_form_alter(&$form, FormStateInterface $form_stat | |
/** @var \Drupal\Core\Entity\EntityTypeInterface $type */ | |
$type = $form_state->getFormObject()->getEntity(); | |
- /** @var Drupal\Core\Entity\ContentEntityTypeInterface $ContentEntityType */ | |
+ /** @var Drupal\Core\Entity\ContentEntityTypeInterface $contentEntityType */ |
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/EventSubscriber/SchedulerEventSubscriber.php b/src/EventSubscriber/SchedulerEventSubscriber.php | |
index ff46ac3..1025ff3 100644 | |
--- a/src/EventSubscriber/SchedulerEventSubscriber.php | |
+++ b/src/EventSubscriber/SchedulerEventSubscriber.php | |
@@ -30,7 +30,9 @@ class SchedulerEventSubscriber implements EventSubscriberInterface { | |
public function publishImmediately(SchedulerEvent $event) { | |
/** @var \Drupal\node\Entity\Node $node */ | |
$node = $event->getNode(); | |
- $node->set('moderation_state', $node->publish_state->getValue()); | |
+ if ($node->hasField('moderation_state')) { |
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/publication_date.install b/publication_date.install | |
index df9495a..b9090b0 100755 | |
--- a/publication_date.install | |
+++ b/publication_date.install | |
@@ -34,3 +34,19 @@ function _publication_date_update_existing() { | |
->from($nids) | |
->execute(); | |
} | |
+ | |
+/** |
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/scheduler.links.task.yml b/scheduler.links.task.yml | |
index fed60f7..88810ac 100644 | |
--- a/scheduler.links.task.yml | |
+++ b/scheduler.links.task.yml | |
@@ -10,22 +10,6 @@ scheduler.cron_tab: | |
weight: 10 | |
base_route: scheduler.admin_form | |
-content_moderation.content: | |
- # Use content_moderation.content which is the same key as is used in the core |
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 | |
# Installation: | |
# - composer global require "squizlabs/php_codesniffer" | |
# - composer global require phpcompatibility/php-compatibility | |
phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4 |