Skip to content

Instantly share code, notes, and snippets.

@teglia
teglia / FCEntityMigrate.php
Last active December 12, 2023 13:21
Migrating Field Collections to Paragraphs on an empty Drupal 8 site WITHOUT migrate_tools or migrate_plus
<?php
namespace Drupal\migrate_custom\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 source from database.
Verifying that +pteglia is my openname (Bitcoin username). https://onename.io/pteglia
131 gem install compass
132 sudo gem install compass
133 sudo gem install sass
134 sudo gem install css_parser
139 sudo gem install zen-grids
211 sudo gem install susy
212 sudo gem install compass-susy-plugin
213 gem install susy
214 sudo gem install susy
323 sudo gem install fssm
D/TiAssetHelper( 594): Fetching "home.js" with Fastdev...
I/TiAPI ( 594): In home
D/Module ( 594): Loading module: /includes/network -> Resources/includes/network.js
D/Module ( 594): Loading module: /includes/db -> Resources/includes/db.js
D/Module ( 594): Loading module: /includes/tables -> Resources/includes/tables.js
D/dalvikvm( 594): GC_CONCURRENT freed 467K, 49% free 3109K/6023K, external 410K/517K, paused 4ms+4ms
D/dalvikvm( 594): GC_FOR_MALLOC freed 4K, 49% free 3105K/6023K, external 410K/517K, paused 28ms
I/dalvikvm-heap( 594): Grow heap (frag case) to 5.883MB for 87396-byte allocation
D/dalvikvm( 594): GC_FOR_MALLOC freed <1K, 49% free 3189K/6151K, external 410K/517K, paused 27ms
[INFO][ActivityManager( 146)] START {cmp=com.patrickteglia.pnwds2012/org.appcelerator.titanium.TiActivity (has extras) u=0} from pid 638
[INFO][TiAPI ( 638)] Haz netwerkz!
[INFO][TiAPI ( 638)] Checking for updates
[INFO][dalvikvm-heap( 638)] Grow heap (frag case) to 6.568MB for 384016-byte allocation
[INFO][TiRootActivity( 638)] (main) [0,0] checkpoint, on root activity resume. activity = com.patrickteglia.pnwds2012.PnwdsMobile2012Activity@41009cc8
[INFO][Choreographer( 638)] Skipped 70 frames! The application may be doing too much work on its main thread.
[INFO][TiAPI ( 638)] Got date from server: Friday, September 21, 2012 - 14:36
[INFO][TiAPI ( 638)] Comparing update dates now.
[INFO][TiAPI ( 638)] siteDate: Friday, September 21, 2012 - 14:36. appDate: null
[INFO][TiAPI ( 638)] Not up to date. Updating.
var NavigationController = require('NavigationController').NavigationController,
TestWindow = require('home').TestWindow;
var controller = new NavigationController();
controller.open(new TestWindow(controller));
/**
* This is the home window
*
* It doesn't do anything fancy, the only thing it does is to create a table
* with links to other windows that actually demonstrates the functionality
*
* To see how a table is created see the file controls.js in Kitchen Sink
*/
var user = {
uid: Titanium.App.Properties.getInt("userUid"),
Alabama AL
Alaska AK
Arizona AZ
Arkansas AR
California CA
Colorado CO
Connecticut CT
Delaware DE
Florida FL
Georgia GA