function InvokableUntrustedObject::__invoke

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\InvokableUntrustedObject::__invoke()
  2. 10 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\InvokableUntrustedObject::__invoke()
  3. 9 core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\InvokableUntrustedObject::__invoke()
  4. 8.9.x core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php \Drupal\Tests\Core\Security\InvokableUntrustedObject::__invoke()

File

core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php, line 218

Class

InvokableUntrustedObject
Invokable untrusted test class.

Namespace

Drupal\Tests\Core\Security

Code

public function __invoke() : string {
  return 'test';
}

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