public static function RenderCachePlaceholderTest::multiCallback in Render cache 7.2
Helper function to check that the right arg is returned.
File
- tests/
src/ Cache/ RenderCachePlaceholderTest.php, line 220 - Contains \Drupal\render_cache\Tests\Cache\RenderCachePlaceholderTest
Class
- RenderCachePlaceholderTest
- @coversDefaultClass \Drupal\render_cache\Cache\RenderCachePlaceholder @group cache
Namespace
Drupal\render_cache\Tests\CacheCode
public static function multiCallback($pholders) {
$placeholders = array();
foreach ($pholders as $pholder => $args) {
$placeholders[$pholder] = array(
'#markup' => 'bar_' . $args[0] . '_' . $args['foo'],
);
}
return $placeholders;
}