Skip to content

Instantly share code, notes, and snippets.

Maarten Segers MPParsley

  • Amplexor
Block or report user

Report or block MPParsley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MPParsley
MPParsley / FileEntity.php
Last active Jul 13, 2018 — forked from jibran/FileEntity.php
Migrating Drupal 7 File Entities to Drupal 8 Media Entities
View FileEntity.php
<?php
// modules/custom/my_custom_module/src/Plugin/migrate/source/FileEntity.php
namespace Drupal\my_custom_module\Plugin\migrate\source;
use Drupal\Core\Database\Query\Condition;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity;
/**
* Drupal 7 file_entity source from database.
@MPParsley
MPParsley / gist:41130c0162ed3a9aebcb
Created Dec 26, 2015 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
View gist:41130c0162ed3a9aebcb
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
You can’t perform that action at this time.