Skip to content

Instantly share code, notes, and snippets.

Avatar

Rick rickp2006

  • USC (Marshall School of Business)
  • Los Angeles
View GitHub Profile
@rickp2006
rickp2006 / SocialFeedCommands.php
Created Mar 18, 2019
SocialFeedCommands.php ported
View SocialFeedCommands.php
<?php
namespace Drupal\social_feed\Commands;
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
use Drush\Commands\DrushCommands;
/**
* A Drush commandfile.
*
@rickp2006
rickp2006 / SocialFeedCommands.php
Created Mar 18, 2019
SocialFeedsCommands.php created by Generate (original)
View SocialFeedCommands.php
<?php
namespace Drupal\social_feed\Commands;
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
use Drush\Commands\DrushCommands;
/**
* A Drush commandfile.
*
@rickp2006
rickp2006 / drush.services.yml
Created Mar 18, 2019
Drush Services YML file created by Generate
View drush.services.yml
services:
social_feed.commands:
class: \Drupal\social_feed\Commands\SocialFeedCommands
tags:
- { name: drush.command }
@rickp2006
rickp2006 / social_feed.drush.inc
Created Mar 18, 2019
Porting to drush 9, social_feed.drush.inc, original file
View social_feed.drush.inc
<?php
use Drupal\Core\Queue\QueueInterface;
use Drupal\Core\Queue\QueueWorkerInterface;
use Drupal\Core\Queue\SuspendQueueException;
/**
* Implements hook_drush_command().
*/
function social_feed_drush_command() {