public static function RenderCachePlaceholderTest::foo_load in Render cache 7.2
Helper function to test loadPlaceholderFunctionArgs().
Parameters
string $argument: The path argument.
Return value
object|NULL The loaded object.
File
- tests/
src/ Cache/ RenderCachePlaceholderTest.php, line 239 - 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 foo_load($argument) {
if ($argument == 'foo') {
return (object) array(
'foo_id' => 1,
'type' => 'foo',
'title' => 'bar',
);
}
return NULL;
}