function FieldDiscoveryTest::addAllFieldProcessesAltersData

Same name in this branch
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
Same name in other branches
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
  2. 8.9.x 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 138

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',
                                'format_interval' => 'datetime_time_ago',
                                'date_plain' => 'datetime_plain',
                            ],
                            '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_select' => 'options_select',
                            'userreference_buttons' => 'options_buttons',
                            'userreference_autocomplete' => 'entity_reference_autocomplete_tags',
                            'nodereference_select' => 'options_select',
                            'nodereference_buttons' => 'options_buttons',
                            'nodereference_autocomplete' => 'entity_reference_autocomplete_tags',
                            '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.