function TextFieldTest::getFieldTypeProvider
Same name in this branch
- 9 core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::getFieldTypeProvider()
Same name and namespace in other branches
- 8.9.x core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::getFieldTypeProvider()
- 8.9.x core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
- 10 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
- 11.x core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
Data provider for testGetFieldType().
File
-
core/
modules/ text/ tests/ src/ Unit/ Plugin/ migrate/ field/ d6/ TextFieldTest.php, line 125
Class
- TextFieldTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21text%21src%21Plugin%21migrate%21field%21d6%21TextField.php/class/TextField/9" title="Plugin annotation @MigrateField( id = "d6_text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {6}, source_module = "text", destination_module = "text", )" class="local">\Drupal\text\Plugin\migrate\field\d6\TextField</a> @group text
Namespace
Drupal\Tests\text\Unit\Plugin\migrate\field\d6Code
public function getFieldTypeProvider() {
return [
[
'string_long',
'text_textfield',
[
'text_processing' => FALSE,
],
],
[
'string',
'text_textfield',
[
'text_processing' => FALSE,
'max_length' => 128,
],
],
[
'string_long',
'text_textfield',
[
'text_processing' => FALSE,
'max_length' => 4096,
],
],
[
'text_long',
'text_textfield',
[
'text_processing' => TRUE,
],
],
[
'text',
'text_textfield',
[
'text_processing' => TRUE,
'max_length' => 128,
],
],
[
'text_long',
'text_textfield',
[
'text_processing' => TRUE,
'max_length' => 4096,
],
],
[
'list_string',
'optionwidgets_buttons',
],
[
'list_string',
'optionwidgets_select',
],
[
'boolean',
'optionwidgets_onoff',
],
[
'text_long',
'text_textarea',
[
'text_processing' => TRUE,
],
],
[
'string_long',
'text_textarea',
[
'text_processing' => FALSE,
],
],
[
NULL,
'undefined',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.