function ConfigTargetTest::providerMultiTargetWithoutCallables

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::providerMultiTargetWithoutCallables()

File

core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php, line 218

Class

ConfigTargetTest
@coversDefaultClass \Drupal\Core\Form\ConfigTarget[[api-linebreak]] @group Form

Namespace

Drupal\Tests\Core\Form

Code

public static function providerMultiTargetWithoutCallables() : \Generator {
  (yield "neither callable" => [
    'foo.settings',
    [
      'a',
      'b',
    ],
  ]);
  (yield "only fromConfig" => [
    'foo.settings',
    [
      'a',
      'b',
    ],
    "intval",
  ]);
  (yield "only toConfig" => [
    'foo.settings',
    [
      'a',
      'b',
    ],
    NULL,
    "intval",
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.