class TestCallables

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables

Hierarchy

Expanded class hierarchy of TestCallables

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 1068

Namespace

Drupal\Tests\Core\Render
View source
class TestCallables implements TrustedCallbackInterface {
  public function preRenderPrinted($elements) {
    $elements['#printed'] = TRUE;
    return $elements;
  }
  
  /**
   * {@inheritdoc}
   */
  public static function trustedCallbacks() {
    return [
      'preRenderPrinted',
    ];
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.