public static function RenderCachePlaceholderTest::singleCallback in Render cache 7.2
Helper function to check that foo was populated and the right bar is returned.
File
- tests/
src/ Cache/ RenderCachePlaceholderTest.php, line 212  - 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 singleCallback($foo, $bar) {
  static::$foo = $foo;
  return array(
    '#markup' => 'Foo' . $bar,
  );
}