Skip to content

Instantly share code, notes, and snippets.

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 / composer.json
Created Mar 18, 2019
Composer.json file after running generate
View composer.json
{
"name": "org/social_feed",
"description": "This extension provides new commands for Drush.",
"type": "drupal-drush",
"authors": [
{
"name": "Author name",
"email": "author@example.com"
}
],
@rickp2006
rickp2006 / composer.json
Last active Mar 18, 2019
Composer.json file (/social_feed/) before running generate
View composer.json
{
"name": "drupal/social_feed",
"type": "drupal-module",
"description": "Provides user an option to easily fetch feeds from Facebook, Twitter or Instagram and then display them accordingly using block",
"keywords": ["Drupal"],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/social_feed",
"minimum-stability": "dev",
"support": {
"issues": "https://www.drupal.org/project/issues/social_feed",
@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() {
You can’t perform that action at this time.