D7

D7 to D8 Migration

I tried to do a D7 to D8 migration using this series of blogs:

http://www.metaltoad.com/blog/migrating-content-drupal-8

 

And I was able to get Vocabularies, terms and content migrated. Yay!!!

Some learnings:

The Drupal t() function - in JS

We all know that Drupal has a t() function for translation of strings while doing custom development. But did you know that drupal also has a javascript equivalent of the same?

How to get SQL string from a view???

$query_run = _get_query_string($view->build_info['query']);

 

function _get_query_string(SelectQueryInterface $query) {
  $string = (string) $query;
  $arguments = $query->arguments();