function PlaceholdersTest::callbackPerUser
#lazy_builder callback; attaches setting, generates markup, user-specific.
Parameters
string $animal: An animal.
Return value
array A renderable array.
File
- 
              core/tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php, line 310 
Class
Namespace
Drupal\Tests\Core\RenderCode
public static function callbackPerUser($animal) {
  $build = static::callback($animal);
  $build['#cache']['contexts'][] = 'user';
  return $build;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
