Callback for a test in providerCopyValuesToKey(), which doubles the value.
Parameters
int $n:
The value passed in from array_map().
Return value
int
The doubled integer value.
File
- drupal/core/tests/Drupal/Tests/Component/Utility/MapArrayTest.php, line 101
- Contains \Drupal\Tests\Component\Utility\MapArrayTest.
Class
- MapArrayTest
- Tests the MapArray system.
Namespace
Drupal\Tests\Component\Utility
Code
public static function providerCopyValuesToKeyCallback($n) {
return $n * 2;
}