Skip to content

Instantly share code, notes, and snippets.

View heddn's full-sized avatar

Lucas Hedding heddn

View GitHub Profile
0 (String, 11 characters ) example.com
1 (String, 9 characters ) prom_page
2 (String, 9 characters ) workperks
3 (String, 7 characters ) company
4 (String, 4 characters ) acro
5 (String, 3 characters ) RBC
6 (String, 3 characters ) foo
7 (String, 4 characters ) that
8 (String, 13 characters ) somethingelse
9 (String, 3 characters ) bar
<code>
+++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldTest.php
@@ -84,36 +84,41 @@ public function testFields() {
+ // Test a node reference field.
+ $field_storage = FieldStorageConfig::load('node.field_company');
+ $this->assertInstanceOf(FieldStorageConfig::class, $field_storage);
+ $this->assertSame('node', $field_storage->getSetting('target_type'));
</code>
This is the ER field tests that I found.
[
{
"title": "Departments",
"name": "departments",
"categories": [
[
{
"id": "10",
"title": "Electronics & Computers",
"image": {
@heddn
heddn / config.yml
Created December 13, 2016 17:40
owned by solr user
---
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: d8starter.dev
vagrant_machine_name: d8starter
# Set 'build_makefile' to 'false' and this to 'true' if you are using a
# composer based site deployment strategy.
build_composer: true
<?php
namespace Drupal\opp_link\Access;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultAllowed;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Routing\Access\AccessInterface;
use Drupal\Core\Routing\RouteMatchInterface;
csv:
name,id,paragraph_test
Foo,1,"paragraph 1, paragraph 2"
Process paragraph_test in custom file reader from a string of "paragraph 1, paragraph 2" => array('paragraph 1, 'paragraph 2')
migrate.yml
field_paragraphs'
plugin: migration
uuid: 88b8d4b8-0887-4dbf-884e-1d2483c3f2c0
id: import_content_test_1
label: Import Content Test 1
source:
plugin: csv
path: 'private://import_csv/content_test_1.csv'
header_row_count: 1
keys:
- id
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"platform": {
"php": "5.5.9"
},
"sort-packages": true
}
{
"name": "thinksimply/nepc",
"description": "Drupal 8 Install",
"type": "project",
"repositories": [
{
"type" : "package",
"package" : {
"name" : "ckeditor/ckeditor",
"version": "4.5.10",
- field_date: field_date
+ field_date:
+ plugin: iterator
+ source: field_date
+ process:
+ value: value
+ end_value: value2