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
| langcode: en | |
| status: true | |
| dependencies: | |
| module: | |
| - article_queue | |
| title: 'Article Queue Worker' | |
| id: article_queue_worker | |
| module: article_queue | |
| callback: article_queue_article_cronjob |
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 | |
| namespace Drupal\article_queue\Plugin\QueueWorker; | |
| use Drupal\Core\Queue\QueueWorkerBase; | |
| use Drupal\node\Entity\Node; | |
| /** | |
| * Processes Node Tasks. | |
| * |
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
| article_queue.article_settings_form: | |
| path: '/admin/config/article_queue/articlesettings' | |
| defaults: | |
| _form: '\Drupal\article_queue\Form\ArticleSettingsForm' | |
| _title: 'ArticleSettingsForm' | |
| requirements: | |
| _permission: 'access administration pages' | |
| options: | |
| _admin_route: TRUE |
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 | |
| use Drupal\Core\Routing\RouteMatchInterface; | |
| use Drupal\Core\Queue\QueueFactory; | |
| use Drupal\Core\Queue\QueueInterface; | |
| /** | |
| * Implements hook_help(). | |
| */ | |
| function article_queue_help($route_name, RouteMatchInterface $route_match) { |
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
| name: Article Queue | |
| type: module | |
| description: This module will provide an exapmle for queue worker. | |
| core: 8.x | |
| package: Custom | |
| dependencies: | |
| - ultimate_cron | |
| - queue_ui |
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 | |
| namespace Drupal\article_queue\Form; | |
| use Drupal\Core\Form\ConfigFormBase; | |
| use Drupal\Core\Form\FormStateInterface; | |
| /** | |
| * Class ArticleSettingsForm. | |
| */ |
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 | |
| REPO=NAME_HERE | |
| # Dir paths on remote server | |
| # These are associated with branches within a git project | |
| LIVE_BRANCH="master" | |
| LIVE="git@host:/var/www/live/" | |
| STAGE_BRANCH="develop" | |
| STAGE="git@host:/var/www/stage/" |