function TextFieldTest::getFieldTypeProvider

Same name in this branch
  1. 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
  1. 8.9.x core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::getFieldTypeProvider()
  2. 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()
  3. 10 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
  4. 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 = &quot;d6_text&quot;, type_map = { &quot;text&quot; = &quot;text&quot;, &quot;text_long&quot; = &quot;text_long&quot;, &quot;text_with_summary&quot; = &quot;text_with_summary&quot; }, core = {6}, source_module = &quot;text&quot;, destination_module = &quot;text&quot;, )" class="local">\Drupal\text\Plugin\migrate\field\d6\TextField</a> @group text

Namespace

Drupal\Tests\text\Unit\Plugin\migrate\field\d6

Code

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.