Skip to content

Instantly share code, notes, and snippets.

name: wg_test
type: module
description: My Awesome Module
core: 8.x
package: Custom
<?php
namespace Drupal\wg_drupal7_migrate\Plugin\migrate\source;
use Drupal\node\Plugin\migrate\source\d7\NodeType as MigrateD7NodeType;
/**
* Drupal 7 Node types source from database.
*
* @MigrateDrupalSource(
* id = "wg_d7_node_type",
* source_provider = "node"
* )
<?php
namespace Drupal\custom\Plugin\migrate\source\d7;
use Drupal\user\Plugin\migrate\source\d7\User as D7User;
/**
* Drupal 7 user source from database.
*
process:
field_temp_tax_1:
plugin: iterator
source: field_album_jcarousel
process:
target_id: tid
field_temp_tax_2:
plugin: iterator
source: field_album_slideshow
process:
Group: migrate_drupal_7 Status Total Imported Unprocessed Last imported
upgrade_d7_url_alias Idle 16476 16476 0 2016-06-10 17:14:42
upgrade_d7_user_role Idle 59 59 0 2016-06-10 16:57:15
upgrade_d7_user Idle 2977 2977 0 2016-06-10 17:06:44
upgrade_d7_node_links Idle 901 901 0 2016-06-10 17:11:56
upgrade_d7_taxonomy_vocabulary Idle 60 60 0 2016-06-10 16:55:50
upgrade_d7_taxonomy_term Idle 4278 4253 0 2016-06-10 16:57:05
upgrade_d7_node_page Idle 54 54 0 2016-06-10 17:10:59
upgrade_d7_node_page_1211
Migration Status Total Created Updated Failed Last imported
upgrade_d7_user Idle 2996 18 2977 1 2016-06-21 17:03:51
@generalredneck
generalredneck / command-output.txt
Last active March 8, 2017 23:03
Output of drupal-vm when type is nothing
$ vagrant up
Bringing machine 'support.local' up with 'virtualbox' provider...
==> support.local: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> support.local: Fixed port collision for 22 => 2222. Now on port 2200.
It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that `nfsd` is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support.
@generalredneck
generalredneck / command-output.txt
Created March 8, 2017 23:07
output when type is undefined in drupal-vm
$ vagrant up
Bringing machine 'support.local' up with 'virtualbox' provider...
==> support.local: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> support.local: Fixed port collision for 22 => 2222. Now on port 2200.
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/mixin_synced_folders.rb:137:in `block in synced_folders': Internal error. Report this as a bug. Invalid: shared (RuntimeError)
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/mixin_synced_folders.rb:125:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/mixin_synced_folders.rb:125:in `synced_folders'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:19:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.1/plug
@generalredneck
generalredneck / composer.json
Created April 10, 2017 17:23
test dependency
{
"name": "allan/test_dependency",
"type": "drupal-module",
"authors": [
{
"name": "Allan Chappell",
"email": "[email protected]"
}
],
"require": {}
@generalredneck
generalredneck / config.yml
Last active May 10, 2017 17:29
Commandline output for Drupalvm solr issue
vagrant_hostname: elccs-new-curriculum.local
vagrant_machine_name: elccs-new-curriculum.local
vagrant_ip: 0.0.0.0
vagrant_synced_folders:
# The first synced folder will be used for the default Drupal installation, if
# any of the build_* settings are 'true'. By default the folder is set to
# the drupal-vm folder.
- local_path: .
destination: /var/www/elccs-new-curriculum.local
type: nfs