function NoSourcePluginDecoratorTest::providerGetDefinitions
Provides data for testGetDefinitions().
File
- 
              core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ NoSourcePluginDecoratorTest.php, line 56  
Class
Namespace
Drupal\Tests\migrate\Unit\PluginCode
public static function providerGetDefinitions() : array {
  return [
    'source exists' => [
      [
        'source' => [
          'plugin' => 'valid_plugin',
        ],
        'process' => [],
        'destination' => [],
      ],
      TRUE,
    ],
    'source does not exist' => [
      [
        'source' => [
          'plugin' => 'invalid_plugin',
        ],
        'process' => [],
        'destination' => [],
      ],
      FALSE,
    ],
    'source is not defined' => [
      [
        'process' => [],
        'destination' => [],
      ],
      FALSE,
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.