function BlockSettingsTest::providerTestTransform
Same name in other branches
- 10 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockSettingsTest::providerTestTransform()
- 11.x core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockSettingsTest::providerTestTransform()
Provides data for testTransform.
File
-
core/
modules/ block/ tests/ src/ Unit/ Plugin/ migrate/ process/ BlockSettingsTest.php, line 43
Class
- BlockSettingsTest
- @coversDefaultClass \Drupal\block\Plugin\migrate\process\BlockSettings @group block
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
public function providerTestTransform() {
return [
'title set' => [
[
'custom',
0,
'foo',
'title',
],
[
'label' => 'title',
'label_display' => 'visible',
],
],
'title empty' => [
[
'custom',
0,
'foo',
'',
],
[
'label' => '',
'label_display' => '0',
],
],
'title <none>' => [
[
'custom',
0,
'foo',
'<none>',
],
[
'label' => '<none>',
'label_display' => '0',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.