drush command runner for Wodby aliases
Save the file in /usr/local/bin/ (or anywhere else as long as it is in your $PATH) and verify that it is executable.
a. Right click on "Raw" button (for drcmd) and copy the URL.
| <?php | |
| namespace Drupal\Tests\staffing_figures_api\Functional; | |
| use Drupal\taxonomy\Entity\Vocabulary; | |
| use Drupal\Tests\BrowserTestBase; | |
| use Drush\TestTraits\DrushTestTrait; | |
| /** | |
| * Tests the Drush commands provided by the staffing_figures_api module. | 
| #!/bin/bash | |
| # Remove existing core with data | |
| make delete core=default -f /usr/local/bin/actions.mk | |
| # Add new core based on search_api_solr module version | |
| make create core=default config_set=search_api_solr_4.2.1 -f /usr/local/bin/actions.mk | 
| #!/bin/bash | |
| # Installation: | |
| # - composer global require "squizlabs/php_codesniffer" | |
| # - composer global require phpcompatibility/php-compatibility | |
| phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4 | 
| 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 | 
| 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(); | |
| } | |
| + | |
| +/** | 
| 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')) { | 
| 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 */ | 
| 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; |