function FieldDiscoveryTest::addAllFieldProcessesAltersData

Same name in this branch
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  2. 9 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  3. 10 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  4. 10 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  5. 11.x core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  6. 11.x core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()

Provides data for testAddAllFieldProcessesAlters.

Return value

array The data.

File

core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php, line 135

Class

FieldDiscoveryTest
Tests FieldDiscovery service against Drupal 6.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

public function addAllFieldProcessesAltersData() {
    return [
        'Field Formatter' => [
            'field_plugin_method' => 'alterFieldFormatterMigration',
            'expected_process' => [
                'options/type' => [
                    0 => [
                        'map' => [
                            'email' => [
                                'email_formatter_default' => 'email_mailto',
                                'email_formatter_contact' => 'basic_string',
                                'email_formatter_plain' => 'basic_string',
                                'email_formatter_spamspan' => 'basic_string',
                                'email_default' => 'email_mailto',
                                'email_contact' => 'basic_string',
                                'email_plain' => 'basic_string',
                                'email_spamspan' => 'basic_string',
                            ],
                            'text' => [
                                'default' => 'text_default',
                                'trimmed' => 'text_trimmed',
                                'plain' => 'basic_string',
                            ],
                            'datetime' => [
                                'date_default' => 'datetime_default',
                            ],
                            'filefield' => [
                                'default' => 'file_default',
                                'url_plain' => 'file_url_plain',
                                'path_plain' => 'file_url_plain',
                                'image_plain' => 'image',
                                'image_nodelink' => 'image',
                                'image_imagelink' => 'image',
                            ],
                            'link' => [
                                'default' => 'link',
                                'plain' => 'link',
                                'absolute' => 'link',
                                'title_plain' => 'link',
                                'url' => 'link',
                                'short' => 'link',
                                'label' => 'link',
                                'separate' => 'link_separate',
                            ],
                        ],
                    ],
                ],
            ],
        ],
        'Field Widget' => [
            'field_plugin_method' => 'alterFieldWidgetMigration',
            'expected_process' => [
                'options/type' => [
                    'type' => [
                        'map' => [
                            'userreference' => 'userreference_default',
                            'nodereference' => 'nodereference_default',
                            'email_textfield' => 'email_default',
                            'text_textfield' => 'text_textfield',
                            'date' => 'datetime_default',
                            'datetime' => 'datetime_default',
                            'datestamp' => 'datetime_timestamp',
                            'filefield_widget' => 'file_generic',
                            'link' => 'link_default',
                        ],
                    ],
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.