public function FieldDiscoveryTest::addAllFieldProcessesAltersData in Drupal 8
Same name in this branch
- 8 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
- 8 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
- 10 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/ d7/ FieldDiscoveryTest.php, line 179
Class
- FieldDiscoveryTest
- Test FieldDiscovery Service against Drupal 7.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d7Code
public function addAllFieldProcessesAltersData() {
return [
'Field Instance' => [
'field_plugin_method' => 'alterFieldInstanceMigration',
'expected_process' => [
'settings/title' => [
0 => [
'plugin' => 'static_map',
'source' => 'settings/title',
'bypass' => TRUE,
'map' => [
'disabled' => 0,
'optional' => 1,
'required' => 2,
],
],
],
],
],
'Field Formatter' => [
'field_plugin_method' => 'alterFieldFormatterMigration',
'expected_process' => [
'options/type' => [
0 => [
'map' => [
'taxonomy_term_reference' => [
'taxonomy_term_reference_link' => 'entity_reference_label',
'taxonomy_term_reference_plain' => 'entity_reference_label',
'taxonomy_term_reference_rss_category' => 'entity_reference_label',
'i18n_taxonomy_term_reference_link' => 'entity_reference_label',
'entityreference_entity_view' => 'entity_reference_entity_view',
],
'link_field' => [
'link_default' => 'link',
],
'entityreference' => [
'entityreference_label' => 'entity_reference_label',
'entityreference_entity_id' => 'entity_reference_entity_id',
'entityreference_entity_view' => 'entity_reference_entity_view',
],
'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',
],
'phone' => [
'phone' => 'basic_string',
],
'datetime' => [
'date_default' => 'datetime_default',
],
'file' => [
'default' => 'file_default',
'url_plain' => 'file_url_plain',
'path_plain' => 'file_url_plain',
'image_plain' => 'image',
'image_nodelink' => 'image',
'image_imagelink' => 'image',
],
],
],
],
],
],
'Field Widget' => [
'field_plugin_method' => 'alterFieldWidgetMigration',
'expected_process' => [
'options/type' => [
'type' => [
'map' => [
'd7_text' => 'd7_text_default',
'number_default' => 'number_default_default',
'taxonomy_term_reference' => 'taxonomy_term_reference_default',
'image' => 'image_default',
'link_field' => 'link_default',
'entityreference' => 'entityreference_default',
'list' => 'list_default',
'email_textfield' => 'email_default',
'phone' => 'phone_default',
'date' => 'datetime_default',
'datetime' => 'datetime_default',
'datestamp' => 'datetime_timestamp',
'filefield_widget' => 'file_generic',
],
],
],
],
],
];
}